Background color
Druide
- css
0 suit0 Gunnar Bittersmann
0 Beat
Hallo zusammen
ich möchte mit einer externen CSS Datei meine Website gestalten. Bei IE habe ich keine Probleme. Bei Opera, Firefox wird aber alles was im body definiert ist nicht richtig ausgegeben. H1, Tabel, m1 funktioniert reibungslos. Habe es auch schon versucht via <p> zu definieren. Dann wird logischer weise aber nur gerade der Bereich formatiert, in welchem der Text steht- Ich habe das Script auch schon validieren lassen und es wurden keine Fehler gefunden. Kann mir jemand helfen? Unten noch das Script
<style type="text/css">
<!--
body {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: normal;
font-size: 10pt;
background-color: #F14E26;
line-height: 1.2;
}
p {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: normal;
font-size: 10pt;
background-color: #F14E26;
line-height: 1.2;
}
h1 {font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: bold;
font-size: 15pt;
}
h2 {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: bold;
font-size: 10pt;
}
h3 {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: bold;
font-size: 15pt;
margin-bottom: 150px;
}
h4 {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: bold;
font-size: 15pt;
margin-top: 150px;
}
Table {
font-family: Arial;
color: #F5F616;
font-style: normal;
font-weight: normal;
font-size: 10pt;
line-height: 1.2;
}
.m1 {
width:740px; height:320px; padding:10px;
position:absolute; left:50%; top:50%;
margin-left:-380px; margin-top:-220px;
border-width:0px;
}
-->
</style>
H1, Tabel
h1
Table
H1 != h1
Table != Tabel != table
ansonsten ist deine fehlerbeschreibung wenig aussagekräfig, einerseits was genau falsch dargestellt wird und andererseits, welches sgml, html, xml du damit formatierst
@@Druide:
Bei IE habe ich keine Probleme. Bei Opera, Firefox wird aber alles was im body definiert ist nicht richtig ausgegeben.
Dann manchst du etwas falsch. Es ist nämlich üblicherweise andersrum: Opera und Firefox stellen richtig dar, IE falsch.
Und „richtig“ bezieht sich natürlich auf das, was du im CSS _gesagt_ hast, nicht auf das, was du _gemeint_ hast.
Und was richtig und was falsch ist, weißt bisher allein du. Siehe Tips für Fragende.
Live long and prosper,
Gunnar
Abgesehen davon, dass dein CSS sehr redundant geschrieben ist, ist keine Aussage möglich, da CSS die Aufgabe hat (X)HTML zu formatieren, du uns aber diesen Gegenstand verschweigst.
mfg Beat