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. Custom Gridder-width, for different pages

Custom Gridder-width, for different pages

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 106 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.
  • H Offline
    H Offline
    Henning
    wrote on last edited by
    #1

    Hy Everyone,

    I'm in the process of creating a website that has a split screen so i can scroll seperately as seen at https://www.eliashanzer.com/ for example.

    I already managed to put the footer next to the gridder like this:

    .footer{

    float: left;
    width: 50%;
    background: blue;
    height: 100%;
    overflow: scroll;
    height: 100vh;
    

    }

    .grid{

    float: left;
    width: 50%;
    background: red;
    height: 100%;
    overflow: scroll;
    height: 100vh;
    

    }

    but the two question i have are:

    1.
    i dont want the gridder to be 50% on every page of the website.
    is this possible and if yes how?

    2.
    if I want the split screen elements to be under each other for the mobile version, do i simply move my custom css to »Custom CSS for Desktop Version«

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by Richard
      #2

      Dear @Henning

      Q 1:

      "i dont want the gridder to be 50% on every page of the website.
      is this possible and if yes how?"

      A: Yes :)
      Every page has its own set of attributes that we can use to target it specifically. So we can set up the CSS so that it only applies to the page you desire. Using the 'Inspect' tool within google Chrome i can look at the structure of a webpage ( right-click on page ) :

      Screen Shot 2020-10-27 at 11.14.07 AM.png

      And up the top of the structure in the opening <body> tag i can see some important information:

      Screen Shot 2020-10-27 at 11.14.19 AM.png

      A class called:

      .slug-work
      

      And a data slug called:

      [data-slug="work"]
      

      These are unique attributes to this page which we can use, so for example you could:

      .slug-work .grid{
      float: left;
      width: 50%;
      background: blue;
      height: 100%;
      overflow: scroll;
      height: 100vh;
      }
      

      Etc :)

      Q 2:

      "if I want the split screen elements to be under each other for the mobile version, do i simply move my custom css to »Custom CSS for Desktop Version"

      A: Yes
      You could go about this customisation by only applying it to the Desktop Version's Custom CSS and then the Mobile would remain standard

      I hope this helps and best wishes, have a wonderful day

      Richard :)

      1 Reply Last reply
      0
      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
      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