xbl12
Programmer
- Dec 12, 2006
- 66
Hi;
Why my buttom move from right to left after i click on the button? How i can stop it to do that? Thanks
my code as following;
Why my buttom move from right to left after i click on the button? How i can stop it to do that? Thanks
my code as following;
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
<title>Welcome to you</title>
<style type="text/css">
html,body{
padding: 0;
margin:0;
}
#container {
position: relative;
width: 796px; /* width + border for IE 5.x */
w\idth: 790px; /* real width */
height:310px;
border: 0px;
padding: 0;
margin-top: 10px;
margin-bottom:auto;
margin-left: auto;
margin-right: auto;
background-color:#f0f0ec;
}
#wrapper{
position: relative;
left: 10px;
top: 15px;
}
table{
border:1px solid ##90bade;
padding:0;
width: 350px;
height:200px;
float: left;
background-color:#FFFFFF;
position: relative;
margin-left: 20px;
marging-right:auto;
marging-top:auto;
marging-bottom:auto;
}
#button {
width: 12em;
border-right: 1px solid #000;
padding: 0 0 1em 0;
font-family: 'Trebuchet MS', 'Lucida Grande',
Verdana, Lucida, Geneva, Helvetica,
Arial, sans-serif;
background-color: #BFBEBA;
color: #333;
float: left;
position: relative;
margin-left: 10px;
marging-right:20px;
marging-top:10px;
marging-bottom:auto;
}
#button ul {
list-style: none;
margin: 0;
padding: 0;
border: none;
}
#button li {
border-bottom: 1px solid #C5C9CB;
margin: 0;
padding:0;
}
#button li a {
display: block;
padding: 5px 5px 5px 0.5em;
border-left: 10px solid #666666;
border-right: 10px solid #CCCCCC;
background-color: #999999;
color: #fff;
text-decoration: none;
width: 100%;
text-align:center;
}
html>body #button li a {
width: auto;
}
#button li a:hover {
border-left: 0px solid #1c64d1;
border-right: 0px solid #5ba3e0;
background-color: #2586d7;
color: #fff;
}
</style>
</head>
<body>
<div id="container">
<div id="wrapper">
<div id="button">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Travel</a></li>
<li><a href="#">About Us service</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Booking</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">Testing</a></li>
<li><a href="#">Testing</a></li>
</ul>
</div>
<table>
<tr>
<td> test</td>
</tr>
</table>
</div>
</div>
</body>
</html>