widac przecenilem ponownie ie; trzeba dodac jeden boks w html pobawic sie cssem
ponizszy kod dziala na pewno w ie6/ff2.0.0.3/op9.20
jesli w ie7 jest zle, zmien komentarz warunkowy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> #elemnet {
position:relative;
margin-top: 10px;
margin-right:auto;
margin-bottom:0px;
margin-left:auto;
width: 500px;
height: 120px;
background-color:#EEEEEE;
}
#logo {
position: relative;
left: 20px;
top: 10px;
background-color:#E1E1E1;
width: 100px;
height: 100px;
line-height: 100px;
}
#box{
text-align: center;
}
#logo img {
vertical-align: middle;
}
#opis{
position: absolute;
top: 10px;
left: 150px;
background-color:#E1E1E1;
width: 290px;
height: 90px;
padding: 5px
}
<!--[if lte IE 6]><style type="text/css">
#box{
position: absolute;
top: 50%;
left: 50%;
}
#logo img {
border: none;
position: relative;
top: -50%;
left: -50%;
}
</style><![endif]-->
<img src="file.jpg" class="logo_img" /> <div id="opis">tu bedzie opis
</div>
pozdrawiam,
/dopisane/
lub prosciej ze stylem in-line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> #elemnet {
position:relative;
margin-top: 10px;
margin-right:auto;
margin-bottom:0px;
margin-left:auto;
width: 500px;
height: 120px;
background-color:#EEEEEE;
}
#logo {
position: relative;
left: 20px;
top: 10px;
width: 100px;
height: 100px;
line-height: 100px;
}
#opis{
position: absolute;
top: 10px;
left: 150px;
background-color:#E1E1E1;
width: 290px;
height: 90px;
padding: 5px
}
<div id="logo" style="background: #E1E1E1 url(lifloat.jpg) 50% 50% no-repeat;"></div> <div id="opis">tu bedzie opis
</div>
pozdrawiam,