CSS divs

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I want to have 5 divs on my page. Header, top_navigation, left_navigation, right_content, bottom_navigation. I have my index page and I have a style sheet linked to it. What do I put in the style sheet to make the div 700px wide, 20px in height, 0px from the top and left? I have a book I am using to help me along but it doesn't have anything about divs in it!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Careful when naming your divs. Avoid using underscores -- stylesheets go funny when selectors have _ in them. Wink

You're trying to do this with absolute positioning, so it should be fairly easy. Build your divs one by one, using the width:, height: , left: and top: attributes in their style.
Look through blooberry.com/indexdot/css for details on the atrributes themselves.

Lemme know if you want more detailed help. Smiling

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Good link Reddy, thanks for the help Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.