I'm progressing in my web coding to use CSS. On every page I have a logo image and a table with the page links.
HTML - this goes on the top of each web page:
CSS - I'm using a linked style sheet:
Being new to CSS, I'd like to know if I'm doing this correctly and if I can do this even more efficently? Can all this be defined into a single element and referenced in the html that way?
Thanks!
HTML - this goes on the top of each web page:
Code:
<h1><a href="index.html">Mediqwest Insurance Services</a></h1>
<table>
<tr>
<td colspan="6"><img src="images/gold_line.gif" width="100%" height="21"></td>
</tr>
<tr>
<td colspan="6"><img src="images/line.gif" width="100%" height="2"></td>
</tr>
<tr>
<td width="16%"> <a href="index.html">Home</a></td>
<td width="16%"> <a href="choosecity.php">Community Meetings</a></td>
<td width="16%"> <a href="notice.html">Medicare 101</a></td>
<td width="16%"> <a href="resources.html">Resources</a></td>
<td width="16%"> <a href="contact.html">Contact Us</a></td>
<td width="16%"> <a href="about.html">About Us</a></td>
</tr>
<tr>
<td colspan="6"><img src="images/line.gif" width="100%" height="2"></td>
</tr>
</table>
CSS - I'm using a linked style sheet:
Code:
a {
font-family:Times New Roman, Times, serif;
color:#000000;
font-size: 12pt;
text-decoration: none;
}
a, a:link {
font-weight: bold;
}
a, a:visited {
font-weight: bold;
}
a, a:active {
font-weight: bold;
}
a:hover{
color: red;
}
table {
width: 100%;
border="0";
}
td {
text-align: middle;
vertical-align: middle;
}
tr {
text-align: center;
vertical-align: middle;
}
h1 {
text-decoration:none;
border: 0;
width: 710px;
height: 181px;
margin-left: 150;
padding: 0;
background : url(/images/MediqwestLogoFINAL.JPG) no-repeat 0 0;
}
h1 a {
display : block;
height : 113px;
text-indent : -9999px;
}
Being new to CSS, I'd like to know if I'm doing this correctly and if I can do this even more efficently? Can all this be defined into a single element and referenced in the html that way?
Thanks!