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 07-18-2006, 02:10 PM div container
Junior Talker

Posts: 1
Trades: 0
I am trying to create a webpage using div, but I only have the header, left column, and footer positioned. When I try to create the right column, I am not able to position it where I would like to position it. My questiion is, how do I position other div elements inside a div container. As of now, I am using marin-left and margin-right.
victory_knght is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-18-2006, 02:15 PM Re: div container
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What's the page you're having trouble with? Put it on a server somewhere and then we can see it.

Are you using floats?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 07-18-2006, 03:22 PM Re: div container
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
if you are going for the header, content, sidebar footer set up you need to have a div container for each one.

With a basic structure like:
HTML Code:
<div id="header">

</div>
<div id="sidebar">

</div>
<div id="content">

</div>
<div id="footer">

</div>
In your CSS you will need something similar to:

Code:
#sidebar {
float: right;
width: 200px;
}
#content {
 margin-right: 210px;
}
#footer {
 clear: both; // This makes the footer appear at the bottom of the page regardless of which column is longer.
}
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 07-18-2006, 04:44 PM Re: div container
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
In addition to those, I would put them ALL inside a "wrapper" div that is set to position:relative.
__________________
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
 
Reply     « Reply to div container
 

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