Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. horizontal line + change background color of only one column + Align image in the middle of column

horizontal line + change background color of only one column + Align image in the middle of column

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • wardhW
    wardhW
    wardh
    wrote on last edited by arminunruh
    #1

    Hello Armin,

    Hope you're well. I'm busy building a website and am trying to get 1 column in a different background color. I don't think it's possible with the current theme, but I'm trying to build a workaround. I was able to construct a horizontal line all over the width of the gridder
    This is how I did the horizontal line:

    1. I added a transparant and empty gif of 10px by 10px.
    2. Changed the background color of that row to black.
    3. With a custom css class I was able to make it 30 px high.
      .wh_transparant_hor{
      width: 30px !important;
      }

    Now I'm trying to add a black background to one of the Columns by adding a black 10x10px gif and trying to make it's heigh 100% with a custom css class. But that doesn't seem to work. Do you have a solution? Would be great.

    My second problem is that I can't seem to figure out how to align an image in the middle of the column. Can this be done with css too? (text-align: center; doesn't do the trick…)

    Thanks,

    W.

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      Hey wardh!

      Horizontal lines:

      I need to add an option one day to add horizontal lines :D

      Edit: now there are horizontal lines with "+more" -> "+horizontal line" in the gridder.

      Right now you could also add a class to a row by right clicking on an empty spot of the row. If you give it a class of "row-line",
      you could use some css like:

      .row-line{
      border-top: 1px solid black;
      }
      

      Background of one Column:

      Add a class to your row like "custom-column-background"
      Then use some css like this:

      .custom-column-background .col:nth-child(2){
      background-color: blue;
      }
      

      The nth-child(2) selects the second column in this example.

      Align image in middle of column:
      Please select the column content and click the "align middle" button in the gridder.
      Screen Shot 2016-09-20 at 09.05.11.png

      1 Reply Last reply
      1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Online Users
      M
      michael_vvc
      C
      craigfeldspar
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search