|
|||
CSS Menü zentral einrichten
So, ich bin's wieder und mit neue Problemen
Entschuldigt mal Also zu mein Problem ich habe eine Website erstellt und alles passt bis jetzt aber das Menü passt sich einfach nicht ein ! Besser gesagt wenn man "margin:0 auto" reinschreibt passt sich alles einwand frei aber mein menü bleibt evtl. so links bündig . Hier mal die Html Code: HTML-Code:
<head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Home</title> <meta name="keywords" content="Home" /> <meta name="description" content="Home" /> <link href="layout.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="logo-wrap"> <div id="logo"> <h1><img src="Bilder/logo.jpg" /> </h1> <h2> </h2> </div> </div> <br /> <br /> <hr> <br /> <!-- start header --> <div id="header"> <div id="menu"> <ul> <li class="current_page_item"> <a href="index.html">Home</a></li> <li><a href="food.html">Foods</a></li> <li><a href="drinks.html">Drinks</a></li> <li><a href="about.html">About</a></li> <li class="last"><a href="gallery.html">Gallery</a></li> </ul> </div> </div> <hr> <div id="wrapper"> <div id="wrapper-btm"> <div id="page"> <!-- start content --> <div id="content"> <div class="post"> <h1 class="title">Willkomen bei unsere Website </h1> <div class="entry"> </div> <div class="meta"> <p class="byline"> <p class="links"><a href="#" class="more"></a> <b>|</b> <a href="#" class="comments"></a></p> </div> </div> <div class="post"> <h2 class="title">Lorem Ipsum Dolor Volutpat</h2> <div class="entry"> <p>Curabitur tellus. Phasellus tellus turpis, iaculis in, faucibus lobortis, posuere in, lorem. Donec a ante. Donec neque purus, adipiscing id, eleifend a, cursus vel, odio. Vivamus varius justo sit amet leo. Morbi sed libero. Vestibulum blandit augue at mi. Praesent fermentum lectus eget diam. Nam cursus, orci sit amet porttitor iaculis, ipsum massa aliquet nulla, non elementum mi elit a mauris. In hac habitasse platea.</p> <p>Vestibulum blandit augue at mi. Praesent fermentum lectus eget diam. Nam cursus, orci sit amet porttitor iaculis, ipsum massa aliquet nulla, non elementum mi elit a mauris. In hac habitasse platea.</p> </div> <div class="meta"> <p class="byline"></p> <p class="links"><a href="#" class="more"></a> <b>|</b> <a href="#" class="comments"></a></p> </div> </div> </div> <div id="footer"> <div id="footer-wrap"> <p id="legal">(c) </a>.</p> </div> </div> </body> Code:
body { margin-top: 49px; padding: 0; margin:0 auto; background: #3E2C2C; font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #FFFFFF; width: 1200px; } h1, h2, h3 { margin: 0; font-weight: normal; color: #48ACDE; } h1 { letter-spacing: -1px; font-size: 32px; } h2 { font-size: 23px; } p, ul, ol { margin: 0 0 2em 0; text-align: center; line-height: 35px; font-family: Arial, Helvetica, sans-serif; } a:link { color: #48ACDE; } a:hover, a:active { text-decoration: none; color: #48ACDE; } a:visited { color: #48ACDE; } img { margin-left: 20%; margin-top: 10%; display: block; } img.left { float: left; margin-right: 15px; } img.right { float: right; margin-left: 15px; } form { margin: 0; padding: 0; } fieldset { margin: 0; padding: 0; border: none; } legend { display: none; } input, textarea, select { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 13px; color: #3E2C2C; } #header { clear: both; width: 860px; height: 55px; margin: 0 auto; text-align: center; } #menu { width: 100%; height: 60px; background: url(images/img01.jpg) no-repeat left top; } #menu ul { margin: 0 ; padding: 0px 0px 0px; list-style: none; line-height: normal; } #menu li { display: block; } #menu a { display: block; float:left; margin: 0 auto; padding: 10px 30px; text-decoration: none; color: #FFFFFF; font-family: Georgia, "Times New Roman", Times, serif; font-size: 13px; } #menu a:hover { text-decoration: none; color: #48ACDE; } #menu .current_page_item a { color: #48ACDE; } #banner { width: 620px; height: 240px; margin: 0 auto; padding: 10px 0 0 0; } #logo { width: 820px; height: 100px; margin: 0 auto; } #logo h1, #logo h2 { margin-left:auto; margin-right:50%; margin: 0; padding: 0 0 0 20px; line-height: normal; } #logo h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size:36px; font-style: italic; } #logo h1 a { text-decoration: none; color: #3E2C2C; } #logo h1 a:hover { text-decoration: underline; } #logo h2 { padding: 20px 0 0 5px; font: italic 13px Georgia, "Times New Roman", Times, serif; color: ##48ACDE; } #logo p a { text-decoration: none; color: #3E2C2C; } #logo p a:hover { text-decoration: underline; } #wrapper { width: 860px; margin: 0 auto; background: #000000 url(images/img02.jpg) no-repeat left top; } #wrapper-btm { background: url(images/img03.jpg) no-repeat left bottom; } #page { width: 860px; margin: 0 auto; padding-top: 20px; background: #3E2C2C; } #content { float: none; width: 620px; margin:0 auto; } .post { padding: 15px 15px; } .post .title { margin-bottom: 10px; padding-bottom: 5px; } .post h1 { } .post h2 { height: 32px; padding: 8px 0 0 15px; font-size: 18px; color: #FFFFFF; } .post .entry { padding: 0 15px; } .post .meta { margin-left: 15px; margin-right: 15px; padding: 15px 0px 30px 0px; border-top: 1px dashed #333333; font-size: 10px; } .post .meta p { margin: 0; line-height: normal; color: #999999; } .post .meta .byline { float: left; } .post .meta .links { float: right; } .post .meta .more { padding: 0 20px 0 18px; background: url(images/img11.gif) no-repeat left center; } .post .meta .comments { padding-left: 22px; background: url(images/img12.gif) no-repeat left center; } .post .meta b { display: none; } #sidebar { float: left; width: 210px; padding-left: 30px; } #sidebar ul { margin: 0; padding: 0; list-style: none; } #sidebar li { margin-bottom: 40px; } #sidebar li ul { } #sidebar li li { margin: 0; } #sidebar h2 { height: 32px; margin-bottom: 10px; font-size: 18px; color: #DADADA; } #search { } #search h2 { margin-bottom: 20px; } #s { width: 115px; margin-right: 5px; padding: 3px; border: 1px solid #BED99C; } #x { padding: 3px; border: none; background: #48ACDE; text-transform: lowercase; font-size: 11px; color: #FFFFFF; } /* Boxes */ .box1 { padding: 20px; } .box2 { color: #BABABA; } .box2 h2 { margin-bottom: 15px; font-size: 16px; color: #FFFFFF; } .box2 ul { margin: 0; padding: 0; list-style: none; } .box2 a:link, .box2 a:hover, .box2 a:active, .box2 a:visited { color: #EDEDED; } #footer-wrap { width: 860px; height: 64px; margin: 0 auto; } #footer { margin: 0 auto; height: 64px; min-height: 64px; padding: 0; font-size: 10px; } html>body #footer { height: auto; } #footer p { } #legal { clear: both; padding-top: 10px; padding-left: 30px; text-align: center; color: #999999; } #legal a { } |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
CSS Menü - Anfänger benötigt Hilfe | mauricen | CSS | 2 | 24.01.2013 12:44 |
Problem mit CSS bei Drop Down Menü | Sunny86 | CSS | 6 | 24.09.2012 15:33 |
Problem mit CSS Dropline menü | horst77 | CSS | 1 | 12.08.2009 12:49 |
herunterfahrendes Menü mit CSS | Pablo | CSS | 1 | 27.12.2007 18:07 |
IE6 Problem mit CSS Menü | träumer | CSS | 2 | 15.01.2007 17:55 |