Forums

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

Home Forums CSS i have a problem with my UL positioning

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42592
    andreea115
    Participant

    hello everyone

    i need a bit of help with the positioning of my LI element.

    i am trying to position my LI elements within a UL.

    i want the first LI element to be position at the left of the UL with no left-margin or left-padding space between it and the UL element.

    You will note from the CODEPEN below that the first LI element (#bromnas01)
    seem to have a left-margin/left-padding of 10px.

    How do i get rid of this.

    http://codepen.io/anon/pen/hFGIo

    warm regards

    Andreea

    #123865
    Paulie_D
    Member

    Browser automatically add padding / margins to ul.

    I would look into a reset CSS or you can just set padding-left:0 on the UL as a one-time fix.

    #123873
    andreea115
    Participant

    Hello Paulie_D

    once again, i thank u for your kind assistance on my query. Your advice worked.

    warmest regards

    Andreea

    #123902
    wolfcry911
    Participant

    IE uses left margin for lists – not padding. So it might be best to zero the padding _and_ margin

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