ok so here goes. Im working on expanding my html, css, and javascript knowledge. To do this i began writing a few basic website designs (on a live server, but all made up and fake). On my most recent one, I've decided to go for dropdown menu's. To space this all properly i decided to go with a table element, and use some very basic (which is all i know right now) javascript. I am currently using a .dropdown and a .dropdown:hover to make my menus work. However since i used the table element, each time i "dropdown" my menu on my test page, the other menus titles resize to the size of the dropdown window. Any ideas how to combat this? heres my code....
CSS
.dropdown ul {
display: none
}
.dropdown:hover ul {
display: block;
background-color: white;
}
body {
margin: 0;
padding: 0;
background: -moz-linear-gradient(AliceBlue, White);
background: -webkit-linear-gradient(AliceBlue, White);
background: linear-gradient(AliceBlue, White);
}
table {
align: center;
font-family: cursive;
font-decoration: underline;
}
td {
border: solid 1px Lavender;
padding: 4px;
margin-left: 6px;
margin-right: 6px;
cell-spacing: 6px;
}
h1 {
font-size: 14px;
}
HTML
<div style="text-align: center">
<img src="http://satasurfer.byethost33.com/2/logo.jpg" height="150px" width="70%" align="center">
</div>
<table>
<td class="dropdown">
<h1>
Search By Department
<ul>
<li><a href="FILLER">Computers and Laptops</a>
<li><a href="FILLER">Computer Components</a>
<li><a href="FILLER">Office Supplies</a>
<li><a href="FILLER">Phones and PDAs</a>
<li><a href="FILLER">Speakers and Audio</a>
<li><a href="FILLER">Tablets and Ipads</a>
</h1>
</td>
<td class="dropdown">
<h1>
Search by Company
<ul>
<li><a href="FILLER">ACER</a></li>
<li><a href="FILLER">AMD</a></li>
<li><a href="FILLER">APPLE</a></li>
<li><a href="FILLER">BELKIN</a></li>
<li><a href="FILLER">BOSE</a></li>
<li><a href="FILLER">COBY</a></li>
<li><a href="FILLER">DELL</a></li>
<li><a href="FILLER">HP</a></li>
<li><a href="FILLER">HTC</a></li>
<li><a href="FILLER">JVC</a></li>
<li><a href="FILLER">LG</a></li>
<li><a href="FILLER">PANASONIC</a></li>
<li><a href="FILLER">SAMSUNG</a></li>
<li><a href="FILLER">SONY</a></li>
</h1>
</td>