jeddi
04-15-2008, 04:46 PM
Hi
I have been struggling with a css problem and can not see why it is not working :o
In the css I have this:
/* Header */
#header {
width: 900px;
margin: 0 auto;
background:transparent;
}
/* Main */
#main {
width: 900px;
margin: 0 auto;
background:#fff;
border:#ddd 3px solid;
}
And in my HTML I have this:
<body>
<div id="header">
<div id="splash"></div>
<div id="logo">
<div id="menu">
<ul>
<li><a href="/index.php">Home</a></li>
<li><a href="/some.php" >Somewhere</a></li>
</ul>
</div> <!-- end of menu -->
</div> <!-- end of logo -->
<div id="main">
<!-- Ad Manager -->
<div class="ad_man">
<div class="xsnazzy" style ="width: 110px;" >
<b class="xtop"><b class="xb1"></b><b class="xb2 xcolor"></b><b class="xb3 xcolor"></b><b class="xb4 xcolor"></b></b>
<div class="xboxcontent">
<h4 class="xcolor" >Ad Manager</h4>
<p style='font-size:12px;text-align:center; font-weight:bold;'><a href="<?php echo $ad_manager_add_link ?>">Place an advert</a></p>
<p style='font-size:13px;text-align:center; font-weight:bold;'><a href="<?php echo $ad_manager_edit_link ?>">Edit advert</a></p>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>
</div> <!-- end of ad_man -->
The full source code is not long and can be seen at http://fethiye-guide.com/ez-ads/index.php
Now the <!-- Ad Manager --> section should be
nested with in the <div id="main"> and therefore
should have a white background and a grey border.
For some reason this isn't happening !
The grey box appears to start and end with nothing inside it.
Does anyone know what I've done wrong ?
Thanks
I have been struggling with a css problem and can not see why it is not working :o
In the css I have this:
/* Header */
#header {
width: 900px;
margin: 0 auto;
background:transparent;
}
/* Main */
#main {
width: 900px;
margin: 0 auto;
background:#fff;
border:#ddd 3px solid;
}
And in my HTML I have this:
<body>
<div id="header">
<div id="splash"></div>
<div id="logo">
<div id="menu">
<ul>
<li><a href="/index.php">Home</a></li>
<li><a href="/some.php" >Somewhere</a></li>
</ul>
</div> <!-- end of menu -->
</div> <!-- end of logo -->
<div id="main">
<!-- Ad Manager -->
<div class="ad_man">
<div class="xsnazzy" style ="width: 110px;" >
<b class="xtop"><b class="xb1"></b><b class="xb2 xcolor"></b><b class="xb3 xcolor"></b><b class="xb4 xcolor"></b></b>
<div class="xboxcontent">
<h4 class="xcolor" >Ad Manager</h4>
<p style='font-size:12px;text-align:center; font-weight:bold;'><a href="<?php echo $ad_manager_add_link ?>">Place an advert</a></p>
<p style='font-size:13px;text-align:center; font-weight:bold;'><a href="<?php echo $ad_manager_edit_link ?>">Edit advert</a></p>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>
</div> <!-- end of ad_man -->
The full source code is not long and can be seen at http://fethiye-guide.com/ez-ads/index.php
Now the <!-- Ad Manager --> section should be
nested with in the <div id="main"> and therefore
should have a white background and a grey border.
For some reason this isn't happening !
The grey box appears to start and end with nothing inside it.
Does anyone know what I've done wrong ?
Thanks