New to CSS Borders Wont Work?
Posted: Fri May 25, 2007 8:37 am
Hello I am quite new to CSS and am getting a bit of practice however I do not understand borders, my desired effect is a green bar with pink (to make it easy to see) at the top and bottom.
Here is what I have written
And my php part:
However in both firefox and iexplore it looks as below:
The top being as it is displayed and the lower being the desired effect

Why is it appearing like this? what have i done wrong:?:
Thanks for any help
Here is what I have written
Code: Select all
.navbar {
height: 15;
background-color: #A4C530;
border-top-width: 1px;
border-top-color: #FF00FF;
border-bottom-width: 1px;
border-bottom-width: #FF00FF;
}Code: Select all
<td colspan="6"><img src="spacer.gif" width="196" height="15" class="navbar"></td>The top being as it is displayed and the lower being the desired effect

Why is it appearing like this? what have i done wrong:?:
Thanks for any help