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
Old 04-13-2008, 05:31 PM Help with div layout
Nathand's Avatar
Extreme Talker

Posts: 233
Location: USA
Trades: 0
I need to make a layout like this:



What I mean by "container" is the body. I've been trying on and off for quite a while now and can't seem to get something like this working in IE and FF. Would anyone be willing to code this basic framework?
Nathand is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-13-2008, 07:27 PM Re: Help with div layout
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Try this, obviously the css in the head can be put in an external stylesheet

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head >
<title>The God King Scenario </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
   margin:0; 
   padding:0;
}

#container {
   width:80%; 
   margin:0 auto; 
   border:3px solid black;
}

#header {
   height:100px; 
   border-bottom:3px solid black;
}

#left {
   float:left; 
   width:100px; 
   border-right:3px solid black; 
   height:400px;
}

#right {
   float:right; 
   width:100px; 
   border-left:3px solid black; 
   height:400px;
}

#footer {
   height:100px; 
   border-top:3px solid black;
}
</style>
</head>

<body>

<div id="container">
     <div id="header"></div>
     <div id="left"></div>
     <div id="right"></div>
     
     <br style="clear:both">
     
     <div id="footer"></div>
</div>

</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 11:25 AM Re: Help with div layout
Nathand's Avatar
Extreme Talker

Posts: 233
Location: USA
Trades: 0
Thanks Gilligan, that may work for me.
Nathand is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 11:31 AM Re: Help with div layout
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
sure, remember you can always remove the borders, they were just to show where everything was right?
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with div layout
 

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.20075 seconds with 12 queries