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. Adding a responsive horizontal line to go above the site title and the primary navigation?

Adding a responsive horizontal line to go above the site title and the primary navigation?

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 971 Views 1 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.
  • P
    P
    plateau
    wrote on last edited by
    #1

    How would I do that? Thanks

    P 1 Reply Last reply
    0
    • P plateau

      How would I do that? Thanks

      P
      P
      plateau
      wrote on last edited by
      #2

      being my header and navigation fixed the rule/line would have to be fixed and be present as a part of the header at all stages of the website.

      1 Reply Last reply
      0
      • mariusjopenM
        mariusjopenM
        mariusjopen
        Global Moderator
        wrote on last edited by
        #3

        Hey plateau,

        you can do that by custom CSS probably. Can you provide a link to your page?

        All the best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply
        0
        • P
          P
          plateau
          wrote on last edited by plateau
          #4

          Hi Marius, you mean like a border top of the navigation spanned 100%
          across the width of the site? my site is oreste.design

          1 Reply Last reply
          0
          • mariusjopenM
            mariusjopenM
            mariusjopen
            Global Moderator
            wrote on last edited by
            #5

            Hey plateau!

            Ok, I see the problem you are facing.
            If you put a div box into the custom HTML section it does not get the responsiveness.

            I would work with a little cheat.

            I see that in the gridder you made a special box which will be styled with the class lay-hr.

            I would do a second box, right above it and give it the class lay-hr-top.

            Then use:

            .lay-hr-top : {
            margin-top: -200px;
            border-top: 1px solid black;
            }
            

            I did not test the code, so maybe the 200px are too much. Maybe you also have to give the box a height.


            Another solution would be to create a line in the custom HTML section, right beneath the body tag and use jQuery to always synchronise the width with the width of the gridder.

            But I would go for the first option – even though it is not a very clean solution.

            I hope that helped!

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            0

            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
            I
            itsbadjujuju
            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