Aurora.Light
04-16-2011, 05:29 AM
Hey guys,
from what I've heard, you have to put the width and height in #tabs ul li { }. how do I measure this? the reason is that the tabs "collapse" when browser size is decreased.
#tabs {
margin: 0;
padding: 0;
}
#tabs ul {
list-style: none;
}
#tabs li {
display:inline;
padding: 1em 3em 1em 3em;
}
<html>
<head>
<title>Testing Float Strength</title>
<link rel="stylesheet" type="text/css" href="float.css"/>
</head>
<body>
<div id="tabs">
<ul>
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
</ul>
</div>
</body>
</html>
from what I've heard, you have to put the width and height in #tabs ul li { }. how do I measure this? the reason is that the tabs "collapse" when browser size is decreased.
#tabs {
margin: 0;
padding: 0;
}
#tabs ul {
list-style: none;
}
#tabs li {
display:inline;
padding: 1em 3em 1em 3em;
}
<html>
<head>
<title>Testing Float Strength</title>
<link rel="stylesheet" type="text/css" href="float.css"/>
</head>
<body>
<div id="tabs">
<ul>
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
</ul>
</div>
</body>
</html>