Forums

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

Home Forums CSS Default position of absolute element

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #284435
    Shikkediel
    Participant

    I’m sure I’ve read it somewhere but can’t find the answer anymore…

    Why is an element with position: absolute sometimes by default positioned on the left, yet at other times at 50% of the parent’s width?

    #284441
    Shikkediel
    Participant

    The div child starts on the left while the pseudo starts in the middle…

    codepen.io/anon/pen/rRGzzJ

    Why does text-align make a difference when position: absolute should force the element to be block level?

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