Forums

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

Home Forums CSS [Solved] ul problems

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181711
    Toljin
    Participant

    Was working earlier when I came across a weird problem. I have two
    ul’s one after another separated by two divs. When I added css to it, the second
    ul appears behind the first. I’m assuming that this should not happen as they are in separate divs? Anyone know why this is happening. jsfiddle with the problem: http://jsfiddle.net/uhjt0qku/

    #181712
    Paulie_D
    Member

    You added position:fixed to the top one which takes it out of the document flow so the bottom div treats it as though it wasn’t there.

    This is standard behaviour.

    A common answer is to add padding-top to the second div

    http://jsfiddle.net/uhjt0qku/1/

    #181714
    Toljin
    Participant

    This is what I did wrong :), realized seconds after posting but thank you for your answer.

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