ich arbeite mit dreamweaver und bastle gerade an einer seite.
mein erstes problem ist folgendes: die navigation sollte oben an den header andocken- sie sollten sich berühren, was sie allerdings nicht tun… ich habe schon sehr viel experimentiert… aber ich weiß nicht woran das liegt…
das zweite problem ist genau so: unten zwischen dem footer und dem rahmen ist der abtsand zu groß, obwohl dort gar keiner sein sollte.
hier der html code:[HTML]
Untitled Document<h1> </h1>
<h1>Main Content </h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at 8f0100</p>
<p>nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.</p>
<h2>H2 level heading </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
<p> </p>
Home : Kontakt : Impressum
©
copyright by…
und heir der css code- (die kommentare kommen daher, dass ich eine vorlage verwendet habe): [HTML]@charset „utf-8“;
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0auto; /* it’s good practice to zero the margin and padding of the body element to account for differing browser defaults /
padding: 0;
text-align: left; / this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector /
color: #000000;
}
.oneColFixCtrHdr #container {
width: 780px; / using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar /
background: #FFFFFF;
margin: 0 auto; / the auto margins (in conjunction with a width) center the page /
border: 2px solid #fff;
text-align: left;
}
.oneColFixCtrHdr #header {
background: #DDDDDD;
padding: 0 0px 0 0px; / this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. /
background-image:url(bilder/header.jpg);
background-repeat:no-repeat;
height:200px;
}
.oneColFixCtrHdr #header h1 {
margin: 0; / zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse /
padding: 10px 0; / using padding instead of margin will allow you to keep the element away from the edges of the div /
}
.oneColFixCtrHdr #mainContent {
padding: 0px; / remember that padding is the space inside the div box and margin is the space outside the div box */
background: #FFFFFF;
text-align: left;
}
.oneColFixCtrHdr #container #footer p {
font-size: 14px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #fff;
text-align: center;
}
}
#navi{
width:780px;
padding: 0px;
}
#navi ul{
list-style-image: none;
list-style-type: none;
}
#navi li{
float:left;
font-size: 24px;
}
#navi a{
display:block;
padding:8px 12px 6 px;
color:#FFF;
}
#navi li a{
display:block;
text-decoration:none;
font-weight:bold;
margin:0px 2px 0px 0px; /für rand von li/
padding:8px 12px 6px;
background:#8f0100;
font-family:Georgia, „Times New Roman“, Times, serif;
font-size: 17px;
}
#navi .active a, #navi li a:hover{
background:transparent;
color:#8f0100;
font-size: 17px;
}
.oneColFixCtrHdr #container #footer {
color: #FFF;
}
.oneColFixCtrHdr #container #footer {
font-size: 100px;
}
.oneColFixCtrHdr #container #footer {
font-size: 14px;
text-align: center;
background-color: #8f0100;
}[/HTML]
ich bitte euch um rat und weiß nicht wo das problem ist (vielleicht liegt das am programm)
und wenn das geschafft ist, dann bleibt mir noch übrig herauszufinden wie ich die navigation zentrieren soll…
ich bedanke mich im voraus…
scorpi