Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nav Positioning Issue

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41110
    Dockers
    Member

    Hey Guys, i am having an issue with positioning of my navigation bar on a layout..

    Here’s the example: http://codepen.io/joe/pen/diBva

    As you can see the logotype is placed as needed, however the navigation is not. Two problems: It is under the logo and it is not positioned in the right side of the screen.

    I want to end up with such kind of styling: http://s55.radikal.ru/i148/1212/e9/dbe1cfc29119.png (screenshot).

    One more thing which confuses me is when i try to apply “float:right” to the CSS, nav elements are getting reversed.

    Hopefully someone can help me sort this out.

    Cheers

    #116107
    Dockers
    Member

    @Andy_unleash,

    Thanks a lot. You’ve been very helpful indeed!

    Cheers

    #116118
    wolfcry911
    Participant

    just a couple of comments:
    1) float overrides any display property, so you don’t need to set the h1 to inline-block
    2) you can float the li to the left and the ul to the right (although display: inline works just as well for the li) without reversing the order

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.