|
#1
|
||||
|
||||
|
Habe eine Frage in Bezug auf eine Navigationspositionierung ohne position:absolute
Die Seite die ich in den letzten Tagen programmiert habe, habe ich etwas in dem Stil von seitwert.de programmiert. Es klappt auch alles super, außer in alten browsern... Ich habe eine Navigation mit position absolute positioniert und wie ich weiß haben alte browser damit probleme... meine frage ist nun wie kann ich die navigation auch ohne position absolute so positionieren wie ich es will? hier der code der php seite: PHP-Code:
Code:
* {
margin: 0;
padding: 0;
}
body {
background: -webkit-gradient(linear, left top, left bottom, from(#98F5FF), to(#4169E1));
}
#header {
width: 100%;
height: 125px;
background-color: #49626d;
}
.logo {
background-image: url(bilder/logo.png);
background-repeat: no-repeat;
width: 150px;
height: 80px;
float: left;
position: absolute;
top: 5px;
}
.navlinks {
position: absolute;
top: 100px;
float: left;
}
.navlinks ul {
margin: auto;
}
.navlinks li {
margin: 0px 5px 0px 0px;
list-style-type: none;
display: inline;
}
.navlinks li a {
color: #215f7c;
padding: 5px 14px 7px;
background-color: #91bec9;
text-decoration: none;
font-size: 16px;
font-family: Verdana;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.navlinks li a:hover{
color: #215f7c;
background-color: #87CEFA;
/*If you want to use a color for the background instead replace above line with background-color: [insert color here with # sign in front];*/
text-decoration: none;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.navlinks .wahl a {
background-color: white;
cursor: default;
}
.navlinks .wahl a:hover{
background-color: white;
cursor: default;
}
#page {
width: 900px;
height: 1100px;
background-color: white;
}
#page p {
font-family: Verdana;
text-align: center;
padding: 10px;
}
#page h1 {
font-family: Verdana;
padding: 5px;
}
#left {
height: 1100px;
width: 150px;
border-right: 2px dashed silver;
float: left;
}
#left:hover {
height: 1100px;
width: 150px;
border-right: 2px solid silver;
float: left;
}
#right {
height: 1100px;
width: 150px;
border-left: 2px dashed silver;
float: right;
}
#right:hover {
height: 1100px;
width: 150px;
border-left: 2px solid silver;
float: right;
}
#footer {
width: 900px;
height: 100px;
background-color: #FFB90F;
}
Entwurf ich hoffe das ihr mir helfen könnt... ihr könnt euch ja auch ansehen welche positionierung ich meine(seitwert.de). danke! |
![]() |
| Lesezeichen |
| Stichworte |
| absolute, css, navigation, position:absolute, positionierung |
| Themen-Optionen | |
| Ansicht | |
|
|