Treehouse: Grow your CSS skills. Land your dream job.

Home Button Not Able to go Left/Centered

  • # April 9, 2013 at 7:15 am

    Hello I just have small problem tried to fixed it looked around Google but for some reason my Home Button is floating to the right and not centered and or floating left. //

    Have spent hour our so trying to find out on Google but stuck a bit.

    Thought I done everything correct.

    # April 9, 2013 at 7:34 am

    You mean text-aligned right?

    # April 9, 2013 at 7:35 am

    add padding: 0; to #navigation

    some browsers use left padding (FF,Safari) and others use left margin (IE) for the default indent of lists. You’ll need to zero both for a specialized navigation list.

    # April 9, 2013 at 7:37 am

    >You mean text-aligned right?

    Actually it’s not…there is padding that is automatically applied by browsers.

    Just add `padding:0;` to your #navigation CSS.

    # April 9, 2013 at 7:52 am

    @Paulie_D And @wolfcry911

    Thanks for that stupid me should of picked that up. I never though to try that. Have gone from PHP to HTML for my main website and will use php/html for my products store.

    # April 9, 2013 at 10:45 am

    @Paulie_D @wolfcry911

    Just a update I have added sub level menu can you just test it out and let me know //

    # April 9, 2013 at 10:55 am

    Looks fine

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.