Loon3y
Neues Mitglied
Hallo,
kann es sein das der mozilla (3.0.1.) eine Liste ( <ul> ) automatisch einrückt? habe nun eine liste erstellt und mit float:left links gemacht, daneber kommt inhalt und dann wieder eine liste mit flaot:right. So Nun ist der Maininhalt allerdings ganz oben am Header und die 2 Listen sind eingerückt. allerdings nur im Mozilla, im IE sind sie nicht eingerückt. (16px nach unten)
anbei mal code..
css
	
	
	
		
index.htm
	
	
	
		
				
			kann es sein das der mozilla (3.0.1.) eine Liste ( <ul> ) automatisch einrückt? habe nun eine liste erstellt und mit float:left links gemacht, daneber kommt inhalt und dann wieder eine liste mit flaot:right. So Nun ist der Maininhalt allerdings ganz oben am Header und die 2 Listen sind eingerückt. allerdings nur im Mozilla, im IE sind sie nicht eingerückt. (16px nach unten)
anbei mal code..
css
		Code:
	
	    .header {
        width:98%; 
        height: 5em; 
        border: 1px solid; 
        margin: 0px auto;
        }
    #over {
        width:58.33em;
        height: 45em;
        margin: 0px auto;
        border: 1px solid;
        }
    #nav_left {
        list-style:none;
        width: 10em;
        height: 25em;
        border: 1px solid;
        float:left;
        }
    #nav_right {
        list-style:none;
        width: 10em;
        height: 25em;
        border: 1px solid;
        float:right;
        }
    li { margin-top: 20px; }
    #main {
        width: 30em;
        height: 30em;
        margin: 16px auto;
        border: 1px solid;
        }
    p { padding: 5px 10px; }
    h2 { padding: 5px 10px; }
	index.htm
		Code:
	
	<!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" lang="de-de">
<head>
<title>Ich bin eine Seite mit 2 Menus</title>
<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <div id="over">
     <h1 class="header"> <img src="#" alt="header" /> </h1>
    
        <ul id="nav_left">
            <li>Punkt Links 1 </li>
            <li>Punkt Links 2 </li>
            <li>Punkt Links 3 </li>
            <li>Punkt Links 4 </li>
            <li>Punkt Links 5 </li>
        </ul>
        <ul id="nav_right">
            <li>Punkt Rechts 1 </li>
            <li>Punkt Rechts 2 </li>
            <li>Punkt Rechts 3 </li>
            <li>Punkt Rechts 4 </li>
            <li>Punkt Rechts 5 </li>
        </ul>
        <div id="main">
            <h2> Ich bin das Main-Ding </h2>
            <p>     Hier steht ganz viel Inhalt und so ;D
            </p>
        </div>
    </div>
</body>
</html>