18.07.2014, 07:48
Guten Morgen,
wenn ich mein Browserfenster kleiner mache verschieben sich die Inhalte meiner Menüleiste. Ich habe schon alles ausprobier, weiss jemand einen Rat?
Danke im Voraus,
Sebastian.
CSS:
wenn ich mein Browserfenster kleiner mache verschieben sich die Inhalte meiner Menüleiste. Ich habe schon alles ausprobier, weiss jemand einen Rat?
Danke im Voraus,
Sebastian.
CSS:
Code:
/* ANFANG NAVIGATION! */
@import url(http://fonts.googleapis.com/css?family=Montserrat);
* {
margin: 0;
padding: 0;
}
.nav {
background: #232323;
height: 60px;
display: inline-block;
width: 100%;
margin: auto;
}
.nav li {
float: left;
list-style-type: none;
position: relative;
}
.nav li a {
font-size: 16px;
color: white;
display: block;
line-height: 60px;
padding: 0 26px;
text-decoration: none;
border-left: 1px solid #2e2e2e;
font-family: Verdana;
text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
.nav li a:hover {
background-color: #2e2e2e;
}
#settings a {
padding: 18px;
height: 24px;
font-size: 10px;
line-height: 24px;
}
/* Search Box! */
#search {
width: 357px;
margin: 4px;
}
#search_text{
width: 297px;
padding: 15px 0 15px 20px;
font-size: 16px;
font-family: Verdana;
border: 0 none;
height: 52px;
margin-right: 0;
color: white;
outline: none;
background: #02055e;
float: left;
box-sizing: border-box;
transition: all 0.15s;
margin-left: 32px;
position: fixed;
}
::-webkit-input-placeholder { /* WebKit browsers */
color: white;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: white;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: white;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
color: white;
}
#search_button {
border: 0 none;
background: #02055e url(bilder/lupe.png) center no-repeat;
width: 60px;
float: left;
padding: 0;
text-align: center;
height: 52px;
cursor: pointer;
margin-left: 332px;
margin-top: 0px; /* -52px; ohne fixed! */
position:fixed;
}
/* End Search Box! */
/* Drop-Down! */
#options a{
border-left: 0 none;
}
#options>a {
background-image: url();
background-position: 85% center;
background-repeat: no-repeat;
padding-right: 42px;
}
.subnav {
visibility: hidden;
position: absolute;
top: 110%;
right: 0;
width: 200px;
height: auto;
opacity: 0;
transition: all 0.1s;
background: #232323;
}
.subnav li {
float: none;
}
.subnav li a {
border-bottom: 1px solid #2e2e2e;
}
#options:hover .subnav {
visibility: visible;
top: 100%;
opacity: 1;
}
/* End Drop-Down! */
/* ENDE NAVIGATION! */
Hier ein Bild:
[Link: Registrierung erforderlich]