Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
How can I make a 3 column BG using CSS
Old 01-14-2011, 08:13 PM How can I make a 3 column BG using CSS
Average Talker

Posts: 23
Location: Tulsa
Trades: 0
I want the webpage background of my website to be broke into 3 columns. The 2 outside columns will be equal in width and the middle column will be behind the main webpage container. I want to be able to switch out the left and right columns with different BGs and this should make it load faster. Does anyone have any idea how I can do this using CSS?
Shakadoodoo is offline
Reply With Quote
View Public Profile Visit Shakadoodoo's homepage!
 
 
Register now for full access!
Old 01-15-2011, 03:12 PM Re: How can I make a 3 column BG using CSS
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There are tons of layout tutorials on how to create a 3-column layout with CSS. What you put in as the background is the easy part, get the layout figured out first.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-07-2011, 02:07 AM Re: How can I make a 3 column BG using CSS
Banned

Posts: 57
Name: Maria Cooper
Trades: 0
Try this one,
HTML:
Code:
<div id="body">   
  <div id="header"></div>
     <div id="main">
         <div id="content-1"></div>
         <div id="content-2">
             <div id="content-2-1"></div>
             <div id="content-2-2"></div>
         </div>
     </div>
     <div id="footer"></div> </div>
CSS:
Code:
body {    
 margin:0;     
padding:0;     
color:#000;     
background:#fff; 
} 
#body {     
width:960px;     
margin:0 auto;     
background:#ddd; 
}
#header {
     padding:10px;
     background:#fdd;
 }
#content-1 {
     float:left;
     width:220px;
     padding:10px;
     background:#bfb;
 } 
#content-2-1 {
     float:left;
     width:460px;
     padding:10px;
     background:#ddf;
 }
 #content-2-2 {
     float:right;
     width:220px;
    padding:10px;
     background:#dff;
 } 
#footer {
     clear:both;
     padding:10px;
     background:#ff9; 
}

Last edited by maria_cooper; 02-07-2011 at 02:11 AM..
maria_cooper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How can I make a 3 column BG using CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41907 seconds with 12 queries