...

View Full Version : Div positioning relative to container...



antipepsiinc
01-26-2007, 04:43 AM
Hello, I'm having a problem with a couple divs positioning themselves relative to the div that contains them. I'm not sure what is going on, but it looks like they are using another div to do so.

<body>

<div id="container">

<div id="leftBoarder" />
<div id="leftTitleBoarder" />
<div id="title" />
<div id="rightTitleBoarder" />
<div id="rightBoarder" />

</div>
</body>

the last 2 divs seem to be positioning themselves relative to the "title" div rather than the "container" div... My css can be viewed here:
http://www.perimeter-road.com/csstest/stylesheets/style.css

and the page here:
http://www.perimeter-road.com/csstest/

coothead
01-26-2007, 07:21 AM
Hi there antipepsiinc,

and a warm welcome to these forums. ;)

If you had made use of the validator...

http://validator.w3.org/
...you would probably have solved your problem. :)
You need to change this...

<LINK href="stylesheets/style.css" rel="stylesheet" type="text/css" />
...to this...

<link href="stylesheets/style.css" rel="stylesheet" type="text/css" />
...and this..

<div id="leftBoarder" />
<div id="leftTitleBoarder" />
<div id="title" />
<div id="rightTitleBoarder" />
<div id="rightBoarder" />
...to this...

<div id="leftBoarder"></div>
<div id="leftTitleBoarder"></div>
<div id="title"></div>
<div id="rightTitleBoarder"></div>
<div id="rightBoarder"></div>
coothead

antipepsiinc
01-26-2007, 07:52 AM
thank you soo much

coothead
01-26-2007, 08:36 AM
No problem, you're welcome. ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum