zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Display Menue + Drop Down

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 24.11.2009, 20:06
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 19.11.2009
Beiträge: 1
wedding13347 befindet sich auf einem aufstrebenden Ast
Standard Display Menue + Drop Down

Hallo Leute, ich habe versucht, mir die Grundlagen von CSS selber beizubringen - und bin jetzt bei meiner ersten Arbeit ziemlich enttäuscht, daß das Ergebnis im Editor nicht mit dem Browser übereinstimmt. Ich habe schon eine Vorlage genommen, um nicht bei Null anzufangen, aber seht selbst:

AllegroTours

1.) Der Abstand der oberen rechten Menubar zum oberen Rand soll nicht sein, das Menu soll nahtlos am Rand liegen.
2.) Die Dropdowns im Menu (z.B. "Produkte") sind nicht komplett sichtbar. Wie schaffe ich es, daß Dropdown-Feld komplett sichtbar zu machen?

Danke,Peter.






/* -- Main layout styles -- */

body {
margin: 1em 1em 1em 1em;
padding: 0px;
font-family: verdana, sans-serif;
font-size: 1.0em;
background-color: #333;
}

#siteBox {
float: left;
width: 100%;
color: #FFF;
}





/* -- Header layout/display styles -- */

#header {
float: left;
width: 100%;
height: 4em;
background: #25509F url(../images/hdr.jpg) no-repeat bottom left;
}

#header a {
float: right;
width: 8em;
padding: 5px 10px 5px 10px;
font-size: 0.6em;
text-align: center;
text-decoration: none;
color: #FFF;
background-color: #666;
border-bottom: 2px solid #333;
border-right: 1px solid #333;
border-left: 1px solid #333;
}

#header a:hover, #header a.active {
padding-top: 10px;
background-color: #333;
}

#header a.lastMenuItem {
background-image: url(../images/corner_tr.gif);
background-repeat: no-repeat;
background-position: top right;
border-right: 0px;
}

a .desc {
display: none;
text-transform: none;
color: #FC0;
}

a:hover .desc, .active .desc {
display: block;
}


/* -- Header title and subTitle layout/display styles -- */


.title {
float: left;
padding: 0.5em 30px 0 2em;
font-size: 1.4em;
font-weight: bold;
text-align: right;
line-height: 1.5em;
letter-spacing: 0.05em;
color: #FC0;
}

.subTitle {
display: block;
font-size: 0.8em;
text-transform: none;
line-height: 1.2em;
letter-spacing: 0.05em;
margin-bottom: 0.5em;
}



/* -- Content layout/display styles -- */

#content {
float: left;
width: 100%;
padding: 1em 0 1em 0;
background-color: #666;
}

#contentLeft {
float: left;
width: 23.3%;
margin-bottom: 1em;
background: #777 url(../images/corner_sub_tr.gif) no-repeat top right;
}

#contentRight {
float: right;
width: 75%;
background: #777 url(../images/corner_sub_tl.gif) no-repeat top left;
}

#content p {
margin: 1.2em 1.2em 2em 1.2em;
font-size: 0.8em;
line-height: 1.8em;
}

#content a {
text-decoration: none;
color: #FC0;
border-bottom: 1px solid #AAA;
}

#content a:hover {
color: #DDD;
background-color: #888;
border-bottom: 1px solid #EEEEEE;
}

.header, .subHeader {
display: block;
clear: both;
font-weight: bold;
font-size: 1em;
text-transform: none;
color: #FC0;
border-bottom: 1px solid #AAA;
}

.subHeader {
border: 0px;
}

#contentright_agb {
float: right;
width: 75%;
background: #777 url(../images/corner_sub_tl.gif) no-repeat top left;
}

#contentright_agb p {
margin: 1.2em 1.2em 2em 1.2em;
font-size: 0.8em;
line-height: 1.10em;
}

#contentright_agb a {
text-decoration: none;
color: #FC0;
border-bottom: 1px solid #AAA;
}

#contentright_agb a:hover {
color: #DDD;
background-color: #888;
border-bottom: 1px solid #EEEEEE;
}



/* -- Content left site links (large plus icon) -- */

#content a.menuItem {
display: block;
padding: 5px 0 5px 54px;
background: url(../images/icn_plus.gif) no-repeat center left;
border: 0px;
}

#content a:hover.menuItem {
color: #DDD;
background: #888 url(../images/icn_plus_on.gif) no-repeat center left;
border: 0px;
}





/* -- Footer layout/display styles -- */

#footer {
float: left;
width: 100%;
height: 3em;
font-size: 0.6em;
text-transform: none;
line-height: 2.6em;
color: #0AD;
background: #25509F url(../images/hdr.jpg) repeat-y top left;
}

#footerLeft {
float: left;
width: 60%;
height: 3em;
text-align: left;
background: url(../images/corner_bl.gif) no-repeat bottom left;
}

#footerRight {
float: right;
width: 35%;
height: 3em;
text-align: right;
background: url(../images/corner_br.gif) no-repeat bottom right;
}

#footer a {
color: #0AD;
}

#footer a:hover {
color: #666666;
}


/* -- Display formatting styles -- */

.grey {
font-size: 0.9em;
color: #AAA;
}

.white {
color: #FFF;
}

acronym {
cursor: help;
border-bottom: 1px dotted #AAA;
}

/* -- <ul> tag styles -- */

ul{
font-size: 0.8em;
padding-top: 5px;
padding-bottom: 5px;
list-style-image: url(../images/li_bullet.gif);
}

li {
margin-left: 50px;
}

/* -- Image alignment classes -- */

.imgLeft, .imgRight {
margin: 5px;
}

.imgLeft {
float: left;
margin-left: 0px;
}

.imgRight {
float: right;
margin-right: 0px;
}


/* -- Utility classes to create the bottom rounded corners -- */

.bottomCorner {
text-align: right;
}

.vBottom {
vertical-align: bottom;
}
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 25.11.2009, 07:32
Benutzerbild von hubspe
Eisen 7 ole....
XHTMLforum-Kenner
 
Registriert seit: 22.06.2007
Ort: Passau
Beiträge: 7.086
hubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblickhubspe ist ein wunderbarer Anblick
Standard

Moin,

gleich das erste Layout mit Dropdown und runden Ecken, wo du offensichtlich die Grundlagen noch nicht so richtig verstanden hast.
Das nenn ich tollkühn bis aberwitzig.

So wie du macht man sicher keine Menüs - Stichwort Semantik
Dein Dropdown verschwindet hinter einem nachfolgenden Container - Stichwort Schichtreihenfolge

Validiere dein Dokument erst mal.

Zeilenumbrüche macht man normal nicht mir <br /> und wenn dann syntaktisch wenigstens richtig schreiben.

An deiner Stelle würde ich mich nochmal um die Grundlagen kümmern und die Layouts auch selber machen.
__________________
Ein mehrfacher Gruß aus dem Südosten
Klaus
Mit Zitat antworten
Sponsored Links
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
FAQ -- Häufig gestellte Fragen und häufig gegebene Antworten mazzo CSS 10 05.04.2012 17:32
Problem mit einem 3D-Effekt moep0710 CSS 12 12.06.2010 14:30
Drop down Menü bleibt aktiv nach zurück mit back button vom Firefox gombi CSS 0 18.01.2010 15:34
Drop Down Menü wird nicht im ie angezeigt Airfidh CSS 5 02.08.2008 22:58


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:10 Uhr.