html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
ul, h1, h2, h3, h4, h5, form, p {
margin: 0;
padding: 0;
}
ul, li {
list-style:none;
}
body {
background: #fff;
font-family: Verdana, sans-serif;
font-size: 10px;
color:#706F6F;
}
a img {
border:none;
}
h1, h2 {
margin-bottom:13px;
}
div.clear {
clear: both !important;
visibility: hidden !important;
margin:0 !important;
height:0px !important;
overflow: hidden;
font-size:1px;
}
Для float div’ов, которым нужен бекграунд, использую
.clearfix:after {
content: “.”;
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* Hides from IE-mac \*/
* html .clearfix {
height: 1%;
}
/* End hide from IE-mac */
Для горизонтального меню
/* MENUS ————————————————————-*/
#mainmenuholder {
float:left;
height:41px;
width:743px;
margin-top:72px;
margin-left:67px;
margin-right:-20px;
background: url(images/mainmenubackgr.jpg) no-repeat left top;
line-height:33px;
overflow:hidden;
}
#mainmenuholder ul {
float:left;
margin-left:41px;
background: url(images/mainmenuitem.jpg) no-repeat left top;
padding-left:1px;
}
#mainmenuholder ul li {
float:left;
list-style-type: none;
background: url(images/mainmenuitem.jpg) no-repeat right top;
}
#mainmenuholder ul li a {
padding:0 14px;
font-size: 11px;
text-transform: uppercase;
font-family:Arial, sans-serif;
color: #051F2F;
text-decoration:none;
font-weight:normal;
}
#mainmenuholder ul li.active {
background: url(images/mainmenuactiveitem.jpg) no-repeat right top;
}
#mainmenuholder ul li.active a {
font-weight:bold;
}
/* END MENUS ————————————————————-*/