User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » div & css question Page [1]  
BigMan157
no u
103352 Posts
user info
edit post

so i'm trying to get the layout of this thing looking ok

right now it is at

div id="wrap">
<div id="head">
</div>
<div id="content">
<div class="title"><h1><a href="">Test Title</a></h1></div>
</div>
<div id="rightcontent">
<div id="navpane"></div>
</div>
</div>


and the rightcontent div is displayed under the content div

if i do
<div id="wrap">
<div id="head">
</div>
<div id="rightcontent">
<div id="navpane"></div>
</div>
<div id="content">
<div class="title"><h1><a href="">Test Title</a></h1></div>
</div>
</div>


then they'll display side by side, like i want them to, but in reversed order

css is
#content	{
width: 571px;
height: 340px;
background:#323232 url(images/content-bgtop.jpg) no-repeat top left;
margin:0;
padding:0 20 0 40;
}

#navpane {
width:179px;
height: 340px;
background:#323232 url(images/navpane-bgtop.jpg) no-repeat top right;
margin:0;
padding:0;
position:relative;
}

#rightcontent {
width:179px;
min-height:340px;
background:#323232;
float:left;
font-family: Tahoma, Arial, Helvetica, sans-serif;
margin:0;
padding:0;
}


so... why can't i get it lining up side-by-side like i want it to?

fucking divs

5/28/2006 4:38:04 PM

quagmire02
All American
44225 Posts
user info
edit post

divs take up the whole line...use a table

[/guess]

[Edited on May 28, 2006 at 4:40 PM. Reason : s]

5/28/2006 4:40:44 PM

BigMan157
no u
103352 Posts
user info
edit post

i'm trying to learn divs though

[Edited on May 28, 2006 at 4:59 PM. Reason : and in the stylesheet i define set widths]

5/28/2006 4:58:34 PM

mienutzich
All American
4300 Posts
user info
edit post

#content { float: right; }

5/28/2006 6:07:43 PM

BigMan157
no u
103352 Posts
user info
edit post

that and setting the rightcontent to float:right did it

thx

5/28/2006 7:29:26 PM

Ernie
All American
45943 Posts
user info
edit post

Quote :
"divs take up the whole line...use a table"


ahaha that's probably the worst advice ever

5/28/2006 8:23:43 PM

 Message Boards » Tech Talk » div & css question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.