The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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?


    # April 26, 2010 at 11:32 pm

    Read this it will help you understand the in and outs of positioning … 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed