Forums

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

Home Forums CSS Dropdown menu extra space removal.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44866
    miky2020x
    Member

    Right now i’m creating my portfolio website and i’m currently working on the navigation bar and trying to make it a dropdown one.

    I’ve managed to get it to function properly but i seem to have an issue.
    If you look at this picture:
    http://i40.tinypic.com/ae3xa0.png

    To the left of the dropdown menu is a bunch of extra white space. How do i remove that and center the text?

    Css Code for the navigation:
    http://i44.tinypic.com/noda8j.png

    Thanks a bunch if anyone can help,
    – Miky.

    #135557
    Anonymous
    Inactive

    try adding “text-align:center;” to the list wrapper.

    And try not to write CSS code in a single line. It’s confusing and unnecessary.

    #135558
    Rohithzr
    Participant

    well it would have been a lot better if you could create a pen but nevertheless i created a menu some time ago which is similar to your menu by functionality.

    https://www.dropbox.com/s/40iq4h5ygcvfbwv/men.html?v=0mcn

    #135561
    miky2020x
    Member

    @Jarolin and @Rohithzr

    Thank you both for helping me. I figured it out and now the text is aligned.

    Thank you both again.

    (I’ll work on the single line css)

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