kleines css problem ...
es gibt eine html-seite, die ein externes css hat.
die codes sind weiter unten.
jetzt ist es so, dass die <li>-<a>-kombination an sich
sehr gut funktioniert, bis auch einen kleinen hacken.
habe ich viele <li>+<a> in dem <ul> drin, und dies nicht
mehr in eine zeile passt, wird umgebrochen. das ist auch
ok so.
nur .... sollte es so sein, dass die zweite zeile dann
auch die margin- und padding-werte so einhält, dass die sch****
dinger nicht überschnitten sind. - siehe screenshot IE6
beim opera sieht's ähnlich mies aus.
ideen?
was habe ich übersehen?
und nun der html-code
und der css-code
es gibt eine html-seite, die ein externes css hat.
die codes sind weiter unten.
jetzt ist es so, dass die <li>-<a>-kombination an sich
sehr gut funktioniert, bis auch einen kleinen hacken.
habe ich viele <li>+<a> in dem <ul> drin, und dies nicht
mehr in eine zeile passt, wird umgebrochen. das ist auch
ok so.
nur .... sollte es so sein, dass die zweite zeile dann
auch die margin- und padding-werte so einhält, dass die sch****
dinger nicht überschnitten sind. - siehe screenshot IE6
beim opera sieht's ähnlich mies aus.
ideen?
was habe ich übersehen?
und nun der html-code
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>title</title>
<link rel="stylesheet" type="text/css" href="styles.css" media="screen">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" link="#FF6600" alink="#FF6600" vlink="#FF6600">
<ul id="alldomains">
<li><a href="/index.php?domain=0" target="_top">domain 0</a></li>
<li><a href="/index.php?domain=1" target="_top">domain 1</a></li>
<li><a href="/index.php?domain=2" target="_top">domain 2</a></li>
<li><a href="/index.php?domain=3" target="_top">domain 3</a></li>
<li><a href="/index.php?domain=0" target="_top">domain 0</a></li>
<li><a href="/index.php?domain=1" target="_top">domain 1</a></li>
<li><a href="/index.php?domain=2" target="_top">domain 2</a></li>
<li><a href="/index.php?domain=3" target="_top">domain 3</a></li>
<li><a href="/index.php?domain=0" target="_top">domain 0</a></li>
<li><a href="/index.php?domain=1" target="_top">domain 1</a></li>
<li><a href="/index.php?domain=2" target="_top">domain 2</a></li>
<li><a href="/index.php?domain=3" target="_top">domain 3</a></li>
</ul>
</body>
</html>
Code:
body
{
font-family: verdana, sans-serif;
font-size: 11px;
color: #333333;
background-color: #FFFFFF;
margin: 0px;
padding: 20px;
}
#alldomains
{
display: block;
border: 1px solid #666666;
margin: 0px;
padding: 30px 0px 30px 0px;
}
#alldomains li
{
display: inline;
margin: 0px;
padding: 0px;
list-style-type: none;
}
#alldomains li a
{
display: inline;
border: 1px solid #666666;
/*margin: 0px 0px 0px 10px;*/
margin: 20px;
padding: 20px;
width: 100%;
text-decoration: none;
color: #333333;
font-weight: bold;
}
#alldomains li a:hover,
#alldomains li a:active,
#alldomains li a:focus
{
border-color: #FF6600;
background-color: #eeeeee;
}



Comment