Grow your CSS skills. Land your dream job.

Problems with positioning divs as trying to lay out page

  • # April 26, 2010 at 8:13 pm

    Hi everyone,

    I am totally new to CSS coding in terms of laying page layout (as I previously worked with tables) and therefore have problems with positioning.

    I have got a #header and trying to place 2 other divs (#logo, #address) in it. Which type of positioning should I use? Absolute or relative, or static? Whichever I use I end up in completely mess.

    Could anyone help?

    Peter

    # April 26, 2010 at 11:32 pm

    Read this it will help you understand the in and outs of positioning
    http://www.barelyfitz.com/screencast/ht … sitioning/

    # April 27, 2010 at 5:06 pm

    If you position your header as "relative" then the logo and address can both be positioned "absolute". You’ll have better control over exactly where they fall inside the header tag.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".