Witam!
w css jak mam diva logo, którego wysokość jest 100 px i kolor tła czarny. W tego diva wstawiam obrazek również o wysokości 100px, a wtedy sam div rozszerza mi się mniejwięcej do 105px, lecz tylko w przeglądarce IE. Jak to zlikwidować?
html, body { margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; } #strona { width: 900px; margin-left: auto; margin-right: auto; float: center; } #logo { width: 900px; text-align: center; clear: both; margin-left: auto; margin-right: auto; background-color: black; float: center; }
<html> <!-- Początek Atrybutów Head --!> <head> <link rel="Stylesheet" type="text/css" href="strona.css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <meta name="language" content="pl" /> </head> <!-- Koniec Atrybutów Head --!> </body> <!-- Deklaracja divu strona --!> <div id="site"> <div id="logo"> <img src="logo.gif" style="width: 360px; height: 100px;"/> </div> </div> <!-- Div zamykający strona --!> </body> </html>
tylko tak: