okay, i'm trying to center a div tag classed as "content" but it won't let me. when i try to center the div with align="center" it works, but as soon as i add class="content" it loses the align property. i have kinda cut down the problems to the part in my css where i specify width. when i take the width out, everything becomes center, but the div tag is now 100% of the screen. i have a background image in it that can only be 770px wide.
here is my code...
html-
<div align="center" class="content">
<span class="navigation" align="center">
<a href="" class="navigation">Home</a> -
<a href="" class="navigation">Gowns</a> -
<a href="" class="navigation">Bridesmaids</a> -
<a href="" class="navigation">Grad/Prom</a> -
<a href="" class="navigation">Evening/Guest Wear</a> -
<a href="" class="navigation">Mother of the Bride</a> -
<a href="" class="navigation">Viels/Tiaras</a> -
<a href="" class="navigation">Shoes/Gloves/Jewelry</a>
</span>
<br /><br />
<div align="center">
<table>
<tr>
<td>
<img src="images/specials.gif" /><br />
click for sales events and promotions...<br />
</td>
<td>
<img src="images/why_us.gif" /><br />
</td>
<td rowspan="3">
<img src="images/gown.jpg" />
</td>
</tr>
<tr>
<td>
<img src="images/see_us.gif" /><br /><br />
Wedding Bells Bridal Guide<br />
<img src="images/magazines.gif" /><br />
</td>
<td>
<img src="images/our_approach.gif" /><br />
</td>
</tr>
</table>
<img src="images/testimonials.gif" /><br />
</div>
</div>
and here is my css-
div.content{
width:770px;
background-image: url(../images/background.jpg);
font-size:9pt;
}
thanks for your time everyone.
oya... does programming on a mac make a difference? i don't think it would, but with computers, it can sometimes be anything...
okay, thanks.
AP.
here is my code...
html-
<div align="center" class="content">
<span class="navigation" align="center">
<a href="" class="navigation">Home</a> -
<a href="" class="navigation">Gowns</a> -
<a href="" class="navigation">Bridesmaids</a> -
<a href="" class="navigation">Grad/Prom</a> -
<a href="" class="navigation">Evening/Guest Wear</a> -
<a href="" class="navigation">Mother of the Bride</a> -
<a href="" class="navigation">Viels/Tiaras</a> -
<a href="" class="navigation">Shoes/Gloves/Jewelry</a>
</span>
<br /><br />
<div align="center">
<table>
<tr>
<td>
<img src="images/specials.gif" /><br />
click for sales events and promotions...<br />
</td>
<td>
<img src="images/why_us.gif" /><br />
</td>
<td rowspan="3">
<img src="images/gown.jpg" />
</td>
</tr>
<tr>
<td>
<img src="images/see_us.gif" /><br /><br />
Wedding Bells Bridal Guide<br />
<img src="images/magazines.gif" /><br />
</td>
<td>
<img src="images/our_approach.gif" /><br />
</td>
</tr>
</table>
<img src="images/testimonials.gif" /><br />
</div>
</div>
and here is my css-
div.content{
width:770px;
background-image: url(../images/background.jpg);
font-size:9pt;
}
thanks for your time everyone.
oya... does programming on a mac make a difference? i don't think it would, but with computers, it can sometimes be anything...
okay, thanks.
AP.