Logo/Header & Nav Alignment

Homepage Community Forums Skope Theme Support Logo/Header & Nav Alignment

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1520
    seth17
    Customer

      Hey Wes, I’m trying to set up the logo/header on http://colintierneydesign.com/ to always center align, with the navigation directly below. Similar to http://aws.tumblr.com/. What’s the best way to do that, both in regular view and on mobile?

      #1523
      Wes
      Moderator

        Around line 232 – “.header-image #title-area, .header-image #title, .header-image #title a” change the float to float: none; and change the width to 100%

        For the image that you are linking to in the css, you need to center it.  Its probably easier to just specifically type background-image: url(image-link.jpg); then background-position: center; background-repeat: no-repeat; …….etc

        .header-image #title-area {
        background-image: url(images/logo.png);
        background-position: center;
        background-repeat: no-repeat;
        }

        Then you’ll need to make the header right widget area center by adding “text-align: center;” as well as “clear: both;” and changing the “float: right” to “none” etc.

        Outcome – http://i.imgur.com/W82Xo.png

        #1524
        seth17
        Customer

          That’s almost got it. The logo looks great, but the nav menu is now aligning below the logo and to the right. I tried adding the !important element to the float, but that didn’t have any affect.

          #1528
          Wes
          Moderator

            As mentioned above you’ll need to go through all of the floats in that section and change them to none.   I see that the “#header .menu” is still showing float: right;…..that should be none. The “#header .menu li” on line 303 is still set to float: left; …..that should be none as well……you may also want to add display: inline-block to that same line as well.  You won’t need to add !important, it will work without it.

            #1529
            seth17
            Customer

              Perfect. Thanks Wes. I overlooked that part. Everything is looking good now.

              #1530
              Wes
              Moderator

                Great!

                You’re Welcome

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Logo/Header & Nav Alignment’ is closed to new replies.