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

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2009, 04:41 PM   #1
New Member
 
Join Date: May 2009
Posts: 1
Default Side bars

Hey guys, first post here

I'm having a little trouble figuring this out. I'm making a website designed out of div boxes. There is one central column (900px in width) internally split with other div classes. Anyway, I need to place a 10px box that automatically adjusts to the height of the central column (and is 10px in width) on BOTH the left and right sides of the central column. Here I'll place an image (it's like that shadow that is seen on many websites to give it some depth).

I'm having a hard time figuring out how to place those boxes. I understand how to do this with tables, but surely it's possible with CSS too? If anyone can help me out I'd be very happy.

Here is a copy of some of my code:
body {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
/*background-color:#F3F3F3;*/
background-image: url(images/background_image.jpg);
background-repeat: repeat-x;
}

#maincol {
margin: 0px auto;
padding: 0px 0px 0px 0px;
width: 900px;
border-left: 2px solid #000000;
border-right: 2px solid #000000;
background-color:#ffffff;
}

There are other ID boxes that are inside of the maincol ID. I'll post them if necessary. Thanks so much!
Aagame is offline   Reply With Quote


Old 05-24-2009, 10:43 AM   #2
Banned
 
Join Date: May 2009
Posts: 66
Default

maybe a drawing of what the heck u are talkiing about would make it MUCH easier.
emopoops is offline   Reply With Quote
Old 05-29-2009, 06:00 AM   #3
New Member
 
Join Date: May 2009
Posts: 6
Default

I don't understand your problem either, but it's likely that you're trying to do something unnecessarily complicated. If you provide more info, we can dig into your actual problem though.
__________________
- Susan
Susan-Reed is offline   Reply With Quote
Old 05-29-2009, 01:08 PM   #4
Silver Member
 
AusQB's Avatar
 
Join Date: Jul 2008
Location: Perth, Australia
Posts: 167
Send a message via AIM to AusQB Send a message via MSN to AusQB Send a message via Skype™ to AusQB
Default

The simplest method is to just make a 920px wide image which you can set as the background for your main div.

Within that div you can create 900px wide divs which go on top of it.


So you would have the following code:

Code:
div#wrap {
     background: url(images/bg_main.gif) repeat-y center top;
     height: auto;
     margin: 10px auto;
     width: 920px;
}

div#body {
     height: auto;
     margin: 0 auto;
     width: 900px;
}
HTML Code:
<body>
     <div id="wrap">
          <div id="body"></div>
     </div>
</body>
__________________
RGG Web Designs

Last edited by AusQB; 05-29-2009 at 01:14 PM.
AusQB is offline   Reply With Quote
Reply

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:50 AM.


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.