IE rosszul kezeli a margin-t
Sziasztok!
Van egy ilyenem:Hozzá a CSS pedig:A gondom a következő: firefox-ban jól jeleníti meg az oldalt, viszont ie-ben a margo joval arrébb kerül. Mi lehet a hiba?
■ Van egy ilyenem:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>Home</title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
- <meta name="author" content="Johnny" />
- <meta name="robots" content="all" />
- <meta name="description" content="" />
- <meta name="keywords" content="" />
- <style type="text/css" media="all">
- @import "style/layout.css";
- </style>
- </head>
- <body>
- <div id="wrapper">
- <div id="header">
- <div id="nav"></div>
- </div>
- </div>
- </body>
- </html>
- *
- {
- margin: 0;
- padding: 0;
- }
- a:link
- {
- color: #3C78B5;
- }
- a:visited
- {
- color: #9F65B2;
- }
- a:hover
- {
- text-decoration: none;
- }
- body
- {
- background: #ccc;
- color: #4C4C4C;
- line-height: 1.4em;
- font-family: "Arial", Helvetica, sans-serif;
- font-size: 85%;
- text-align: center;
- }
- #wrapper
- {
- width: 780px;
- height: 100%;
- margin: 0 auto;
- text-align:left;
- }
- /* --- Header layout --- */
- #header
- {
- width: 780px;
- height: 200px;
- background: #fff url(images/header.gif) no-repeat bottom left;
- }
- #nav
- {
- float: left;
- width: 200px;
- height: 160px;
- margin: 0px;
- margin-left: 30px;
- margin-top: 40px;
- background-color: #666;
- }
dupla margó?
ott megoldásként azt írják, hogy a divhez írjunk még egy display: inline-t is, nálad ez:
gex
Köszönöm, így műxik
Következő probléma
nincs köze a marginhoz