Jugend mosht
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 27.03.2008, 19:00   #1
TP-Newbie
 
Benutzerbild von Senseless
 
Registriert seit: Mar 2008
Ort: NRW
Senseless macht alles soweit korrekt

Menu und Content Problem im IE6


Hallo ihr Lieben,

ich hoffe sehr das ihr mir helfen könnt. Google mein bester Freund konnte mir nicht helfen und meine Finger sind schon wund vom tippen.


Es geht hier um ein News-Script, was ich versuche einzubauen, ist mir auch im Firefox geglückt.
Nur der IE6 macht es zur grausamen Ansicht. Das Menü und die News sind übereinander. Weiß echt nicht mehr weiter, schnief.

Anbei poste ich die CSS:

PHP-Code:
body {
    
margin:0 auto;
    
padding:0px;
    
width97%;
    
font-familyVerdana,Arial,Helvetica,sans-serif;
    
background-color#E7E5DD;
    
font-size10px;
    
color#857052;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/bg6.gif);
    
background-repeatrepeat;
    
border2px solid #C7B5A7;
    
}

table {
    
margin:0 auto;
    
border0px;
    
padding-left170px;
    
width100%;
    
padding-right10px;
}


table.content {
    
border-width0px;
    
margin:0 auto;
    
margin-bottom5px;
    
padding0px;
    
background-color#C7B5A7;
    
margin-right5px;
}


table.head    {
    
border-width0px;
    
margin1px 0px 5px;
    
padding0px;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/td_head.gif);
    
}
table.info    border-width0pxmargin1px 0px 5pxpadding0pxbackground-color#C7B5A7; }
table.panel   width150pxbackground-color#C7B5A7; border-color: #C7B5A7; margin-bottom: 5px; }

th font-size13px; }
td font-size12px; }

th.head {
   
background-color#C7B5A7;
   
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/td_head.gif);
}
td.head {
    
background-color#C7B5A7;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/td_head.gif);
    
font-weightbold;
}

th.info   background-color#C7B5A7; border: 1px solid #4583C0; background-image: url(http://urmelchen.free-speicher1.de/tu/news/td_head.gif);}
td.info   background-color#C7B5A7; background-image: url(http://urmelchen.free-speicher1.de/tu/news/td_head.gif);}

th.header {
    
background-color#EFE7DE;
    
font-weightbold;
}
td.header {
    
background-color#EFE7DE;
    
font-size9px;
}

td.left   background-color#EFE7DE; }
td.right  background-color#EFE7DE; }

td.odd    background-color#EFE7DE; }
td.even   background-color#EFE7DE; }

td.center background-color#C6B5A5; }
td.top    background-color#C6B5A5; }
td.bottom background-color#C6B5A5; }

table.quote {
   
background-color#E6DB8E;
   
border1px solid #4D4D62;
}

td.quote {
   
padding3px;
   
background-color#E6DB8E;
   
border-top1px dashed #4D4D62;
}

a:link {
    
color#857052;
    
text-decorationnone;
}
a:visited {
    
color#857052;
    
text-decorationnone;
}
a:active {
    
color#857052;
    
text-decorationnone;
}
a:hover text-decorationunderline color#857052; background-color: #E8CF98; }

input       border1px solid #857052; background-color: #F8F5E4; font-family: Verdana,Helvetica; color: #857052; }
input.send  border1px solid #857052; background-color: #F8F5E4; font-family: Verdana,Helvetica; color: #857052; }
select      border1px solid #857052; background-color: #F8F5E4; font-family: Verdana,Helvetica; color: #857052; }
textarea    border1px solid #857052; background-color: #F8F5E4; font-family: Verdana,Helvetica; color: #857052; font-size: 12px; }
fieldset    border1px solid #857052; background-color: #F8F5E4; padding-bottom: 5px; padding-left: 2px; padding-right: 2px; padding-top: 5px; }

legend {
   
border1px solid #857052;
   
background-color#C6B5A5;
   
font-familyVerdanaArialsans-serif;
   
font-size15px;
   
font-weightbold;
   
padding2px;
}

#Header {
    
height:130px;
    
line-height:11px;
    
voice-family"\"}\"";
    
voice-family:inherit;
    
height:130px;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/bg.jpg);
    
background-repeatrepeat-x;
    
widthauto;
    }

#header2 .banner {
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/banner_tristan);
    
floatnone;
    
height130px;
    
background-repeatno-repeat;
    
widthauto;
    
background-positioncenter;
    
text-aligncenter;
}

#Menu {
    
position:absolute;
    
left:15px;
    
top:90px;
    
width:160px;
    
line-height:20px;
    
voice-family"\"}\"";
    
voice-family:inherit;
    
width:160px;
    
margin-top40px;
    
font-size12px;
    
color#857052;
    
padding-top15px;
    
padding-right10px;
    
padding-left10px;
    
height719px;
            }
            

/* Again, "be nice to Opera 5". */
body>#Menu {width:auto;}
    #tabs {
    
font-size:93%;
    
line-height:normal;
    
text-aligncenter;
    
margin-rightauto;
    
margin-leftauto;
    
width700px;
      }


    
#tabs ul {
    
margin:0;
    list-
style:none;
    
height42px;
    
padding-right5px;
    
padding-bottom0;
    
padding-left10px;
    
padding-top0px;
    
text-aligncenter;
      }

#Menu h2 {
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size12px;
    
displayblock;
    
padding-left20px;
    
color#857052;
    
font-weightbold;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/bg1.gif);
}
#Menu .subnav {
    
margin0px;
    
padding0px;
    list-
style-typenone;
}
#Menu .subnav li {
    
displayblock;
    
margin-top0px;
    
margin-right0px;
    
margin-bottom0px;
    
margin-left0px;
    
border-bottom-width1px;
    
border-bottom-styledashed;
    
border-bottom-color#FFFFFF;
}
#Menu .subnav a {
    
font-weightnormal;
    
color#857052;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size12px;
}

#header2 {
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/bg.jpg);
    
background-repeatrepeat-x;
    
height130px;
    
border1px solid #C7B5A7;
    
width100%;
}
body>#Header2 {height:130px;}

#Menu .subnav a:visited,active {
    
font-weightnormal;
    
color#857052;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size12px;
}
#Menu .subnav a:hover {
    
displayblock;
    
color#857052;
    
font-weightnormal;
    
text-decorationnone;
    
background-imageurl(http://urmelchen.free-speicher1.de/tu/news/bg1.gif);
}
.
footer {
    
background-repeatrepeat;
    
padding-top10px;
    
padding-right25px;
    
padding-bottom10px;
    
padding-left25px;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size10px;
    
color#857052;
    
background-color#C7B5A7;
}

.
spacer {
    
clearboth;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size10px;
    
color#857052;
    
padding-top5px;
    
padding-right25px;
    
padding-bottom10px;
    
padding-left25px;
    
position: static;


http://urmelchen.free-speicher1.de/tu/news/index.php
Miniaturansicht angehängter Grafiken
menu-und-content-problem-ie6-news.jpg  menu-und-content-problem-ie6-newsfirefox.jpg  
Senseless ist offline   Mit Zitat antworten
Linktipp

Alt 28.03.2008, 10:05   #2
TP-Newbie
 
Benutzerbild von Senseless
 
Registriert seit: Mar 2008
Ort: NRW
Senseless macht alles soweit korrekt
Schnief, hat niemand eine Idee woran es liegen könnte?
Wäre für jeden Hilfe oder Hinweis sehr dankbar......
Senseless ist offline   Mit Zitat antworten
Alt 28.03.2008, 12:25   #3
TP-Senior
 
Benutzerbild von th2409
 
Registriert seit: Feb 2007
th2409 ist auf einem guten Weg
EIgentlich ist unklar, warum es in manchen Browsern "richtig" aussieht...

Im Kern verwendest Du für das Menü ( #Menu) eine absolute Positionierung. Damit wird dieser Layer eben unter allen Umständen auf diese Position gedrückt und aus dem normalen Textfluss heraus genommen. Das Menü wird 90px von oben und 15px von links positioniert und ist 160px breit.

Die Tabelle setzt Du auf 100% Breite (per CSS, die Breitenangabe im <table>-Tag ist dann nutzlos...). Da die Tabelle im normalen Dokumentenfluss steht, nutzt sie eben auch die volle <body>-Breite aus. Im Grunde wird die Tabelle dargestellt und das Menü darüber gelegt.

Insgesamt finde ich das CSS ziemlich "aufgeblasen". Wenn ich persönlich mit einer meiner Seiten an einem solchen Punkt bin, schmeiße ich alles CSS weg und fang von vorne an, das ist meist einfacher und man lernt noch was dabei. Ist natürlich immer eine Zeitfrage.

Ich würde mich von dem absolut positionierten Menü trennen. Zwei divs (eins für das Menü, das andere für den Textinhalt) die mit Breite ausgestattet sind (also px oder % oder ems...), diese dann mit CSS float:left an die Seite gestellt.

Alternativ kannst Du auch den Inhalt (also bei Dir die Tabelle) über eine absolute oder relative Positionierung nach rechts schieben, damit sie einen Freiraum auf der linken Seite für das Menü hat. Also mit CSS position: absolute (oder relative) und left: 170px.

Nebenbemerkung, aus technischer Sicht OT: Natürlich liest man sich auch die Originalseite durch. Ich habe es getan und war ziemlich ergriffen. Meine Hochachtung, diese Seite ins Netz zu stellen! Alles andere mal "direkt"
__________________
Thomas
th2409 ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > HTML Puristen > CSS
Menu und Content Problem im IE6 Menu und Content Problem im IE6
« styles.css pour page PHP | Systemfremde Schriftart einbinden »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine 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 an


Alle Zeitangaben in WEZ +2. Es ist jetzt 05:32 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 RC7 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67