Grant Palin
12-13-2002, 07:35 AM
I'm playing around with new website interfaces...I've put up a working one that uses CSS- check it out .
http://www.freewebz.com/hommworld/Other/index.htm
My question is, how can I keep the other links and text from shifting down when I mouseover a links?
Here's the source for that page.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Website Effects- Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
a.sidebar {
font: 11pt arial;
width: 100%;
line-height: 150%;
text-decoration: none;
color: navy;
}
a:hover.sidebar {
background-color: #EEEEEE;
font-weight: bold;
border: 1px solid navy;
}
</style>
</head>
<body>
<table border="0" cellpadding="5" cellspacing="5" width="100%">
<tr>
<td width="20%">
<table cellpadding="2" cellspacing="0" width="100%" border="1" bordercolor="navy" bgcolor="#E2E2E2">
<tr>
<td>
<a href="#" class="sidebar">Home</a><br>
<a href="#" class="sidebar">Tutorial 1</a><br>
<a href="#" class="sidebar">Tutorial 2</a><br>
<a href="#" class="sidebar">Tutorial 3</a><br>
<a href="#" class="sidebar">Tutorial 4</a><br>
<a href="#" class="sidebar">Tutorial 5</a><br>
<a href="#" class="sidebar">Tutorial 6</a><br>
<a href="#" class="sidebar">Tutorial 7</a><br>
<a href="#" class="sidebar">Books</a><br>
<a href="#" class="sidebar">Links</a>
</td>
</tr>
</table>
</td>
<td><h1>Welcome to my Website</h1>
<p>Welcome to my website!</p>
<p>Use the menu to the left to explore the site and see what I have!</p>
<p>If you enjoyed my site, please sign my guestbook! Also, pass the word about my site to your friends!</p></td>
</tr>
</table>
</body>
</html>
http://www.freewebz.com/hommworld/Other/index.htm
My question is, how can I keep the other links and text from shifting down when I mouseover a links?
Here's the source for that page.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Website Effects- Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
a.sidebar {
font: 11pt arial;
width: 100%;
line-height: 150%;
text-decoration: none;
color: navy;
}
a:hover.sidebar {
background-color: #EEEEEE;
font-weight: bold;
border: 1px solid navy;
}
</style>
</head>
<body>
<table border="0" cellpadding="5" cellspacing="5" width="100%">
<tr>
<td width="20%">
<table cellpadding="2" cellspacing="0" width="100%" border="1" bordercolor="navy" bgcolor="#E2E2E2">
<tr>
<td>
<a href="#" class="sidebar">Home</a><br>
<a href="#" class="sidebar">Tutorial 1</a><br>
<a href="#" class="sidebar">Tutorial 2</a><br>
<a href="#" class="sidebar">Tutorial 3</a><br>
<a href="#" class="sidebar">Tutorial 4</a><br>
<a href="#" class="sidebar">Tutorial 5</a><br>
<a href="#" class="sidebar">Tutorial 6</a><br>
<a href="#" class="sidebar">Tutorial 7</a><br>
<a href="#" class="sidebar">Books</a><br>
<a href="#" class="sidebar">Links</a>
</td>
</tr>
</table>
</td>
<td><h1>Welcome to my Website</h1>
<p>Welcome to my website!</p>
<p>Use the menu to the left to explore the site and see what I have!</p>
<p>If you enjoyed my site, please sign my guestbook! Also, pass the word about my site to your friends!</p></td>
</tr>
</table>
</body>
</html>