Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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.2k Views
  • 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 Offline
    wardhW Offline
    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 Online
      arminunruhA Online
      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      💿 Email me here: 💿
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

      This often solves issues you might run into

      When you post:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      arminunruhA
      arminunruh
      G
      Glyph
      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