Witajcie
w jaki sposob moge wyrównać moje menu dla IE ?
nie chce tworzyć nowego stylu z ifem dla IE.
CSS:
HTML:
Pod IE menu lekko idzie do góry, a na `normalnych` przeglądarkach jest ok.
w jaki sposob moge wyrównać moje menu dla IE ?
nie chce tworzyć nowego stylu z ifem dla IE.
CSS:
Kod:
@charset "utf-8";
/* CSS Document */
/* v1.0 | 20080212 */
/*reset css*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
height:100%;
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
/*************************************************************************************/
#container{margin:0 auto;width:850px;height:500px;background:#FFF;}
#top{width:100%;height:100px;background:#565656;}
#menu {padding-left:8px;position:relative; top:76px;}
#menu li{float:left;padding-right:10px;}
#menu li a{
padding: 9px 20px 6px 15px;
background:#F3F3F3;
text-decoration:none;
font-size:15px;
color:#000;
}
#menu li a:hover{background:#F5F5F5;color:#000;}
HTML:
Kod:
<body>
<div id="container">
<div id="top">
<ol id="menu">
<li><a href="#">a</a></li>
<li><a href="#">b</a></li>
<li><a href="#">c</a></li>
<li><a href="#">d</a></li>
</ol>
</div>
</div>
</body>
Pod IE menu lekko idzie do góry, a na `normalnych` przeglądarkach jest ok.