Forums

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

Home Forums CSS Positioning CSS

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

    How can I get a div (or any other block level element) to be center of page and then have elements within it absolute positioned relative to the containing block element?

    #83507
    furrball1383
    Member

    well if you take a div and set its top and left to 50% that should keep it centered on the page even if the window is resized, then simply position all the other elements within the div with values in pixels so they will maintain their positions within the div when the div moves to keep centered on the page.

    #83523
    djpic
    Participant

    Ok, I will fiddle with that a bit tomorrow.

    Thanks.

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