Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-16-2010, 06:24 PM   #1
New Member
 
legendandom's Avatar
 
Join Date: Mar 2010
Posts: 5
Default How can I build this layout with CSS?

Hey guys, I'm kinda noob in designing and for starters I was planning to make a layout much like this one:

Link: http://i278.photobucket.com/albums/k...ker/Layout.png

The red par of the banner should expand horizontally with the client's windows, blue parts are fixed width.

I was thinking about making an outer div to wrap the light blue part, and set the light blue part to a fixed width with auto margin for left and right. Also, I don't know if it's a good idea to not wrap everything inside one big container div, is there a problem leaving the top 2 parts (red-blue banner and dark blue header) independent of the sites content div?

Thx in advance.
__________________
If it doesn't kill you, eat it! If it does kill you, just bite it!
legendandom is offline   Reply With Quote


Old 03-18-2010, 04:10 PM   #2
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

You have the idea right. No there is not a need to wrap everything in a container div.
To allow the red div to expand accordingly set the width to 100%.
You have the blue div correct (fixed width, set margin (L/R) to auto. Note the "auto" setting only works when there is a defined width)

To have the red/blue banner sit above the dark blue one use z-index. In order for z-index to register/function you must set the position to something other that static (default).

I would set the red div to absolute position width a z-index of say 5. (just needs to be one number higher than the dark blue div)

Set the dark blue div to relative position with a z-index of 3.

See how that works.


FYI, due to the many questions about positioning and floating, I am going to post some tutorials in the this forum for all members to reference.
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Old 03-18-2010, 06:15 PM   #3
Bronze Member
 
Join Date: Mar 2010
Posts: 28
Default

You dont need to wrap anything.
What software are you using? You can slice it in illustrator/imageready & recode it in dreamweaver. The CSS should be div's.
__________________
Advanox Online Branding - Custom Identities, Design, Marketing, Promotion & Publishing
Experience the Advanox Advantage "Brand Your Business Successfully" www.Advanox.com
Centovative Creative Innovations - Animation, Reconstructions, Adminastration, SEO/SEM
Building your Business With Innovated Results "Your Business Potential to it's fullest" www.Centovative.com
Advanox is offline   Reply With Quote
Old 03-18-2010, 07:26 PM   #4
New Member
 
legendandom's Avatar
 
Join Date: Mar 2010
Posts: 5
Default

Quote:
To have the red/blue banner sit above the dark blue one use z-index. In order for z-index to register/function you must set the position to something other that static (default).

I would set the red div to absolute position width a z-index of say 5. (just needs to be one number higher than the dark blue div)

Set the dark blue div to relative position with a z-index of 3.
Ok, I'll try that.

Quote:
What software are you using? You can slice it in illustrator/imageready & recode it in dreamweaver. The CSS should be div's.
I'm currently using Expression Web from Microsoft since it has nice support for interoperability with Visual Studio.
__________________
If it doesn't kill you, eat it! If it does kill you, just bite it!
legendandom is offline   Reply With Quote
Reply

Tags
css, divs, layout, layout design

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:31 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.