Seite 1 von 1

stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 16:03
von o0Pascal0o
phpBB: 3.0.8
Style: etechgray(subsilver2) -> http://demo.phpbb3styles.net/eTech+Gray

in der forum/styles/etechgray/theme/stylesheet.css ist 1 Fehler aufgetreten, beim CSS validieren:

Code: Alles auswählen

659 	.attachcontent, .codecontent 	Die Eigenschaft overflow-x existiert nicht in CSS level 2.1, aber in : auto auto 
Hier mal der Ausschnitt aus der stylesheet.css

Code: Alles auswählen

/* BBCode
 ------------ */
.quotetitle, .attachtitle, .codetitle {
        margin: 10px 5px 0px 5px;
        padding: 2px 4px;
        border: solid 1px #4E5159;
        color: #4E5159;
        background-color: #F1F1F2;
        font-size: 0.85em;
        font-weight: bold;
}

.quotetitle .quotetitle {
        font-size: 1em;
}

.quotecontent, .attachcontent {
        margin: 0px 5px 10px 5px;
        padding: 5px;
        border-color: #4E5159;
        border-width: 0px 1px 1px 1px;
        border-style: solid;
        font-weight: normal;
        font-size: 1em;
        line-height: 1.4em;
/*        font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif; */
        background-color: #F1F1F2;
        color: #444;
}

.attachcontent {
        font-size: 0.85em;
}

.codecontent {
        direction: ltr;
        margin: 0px 5px 10px 5px;
        padding: 5px;
        border-color: #4E5159;
        border-width: 0px 1px 1px 1px;
        border-style: solid;
        font-weight: normal;
        font-size: 11px;
        font-family: Monaco, 'Courier New', monospace;
        background-color: #F1F1F2;
        color: #444;
}

.quotewrapper, .codewrapper, .attachwrapper {
        clear: both;
        margin: 10px 5px;
        background: #6B6E76 url(images/code_header.gif) top left no-repeat;
        padding-left: 19px;
        border: solid 1px #4E5159;
}
.quotewrapper { background-image: url(images/quote_header.gif); }
.quotewrapper .quotetitle, .codewrapper .codetitle, .attachwrapper .attachtitle {
        margin: 0;
        border-width: 0 0 1px 1px;
}
.quotewrapper .quotecontent, .codewrapper .codecontent, .attachwrapper .attachcontent {
        margin: 0;
        border-width: 0 0 0 1px;
}
.attachcontent, .codecontent {
        overflow: auto;
        overflow-x: auto;
}


.syntaxbg {
        color: #000;
}
Die Zeile 659 die angemeckert wird, ist davon diese hier:

Code: Alles auswählen

overflow-x: auto;
Wie bekomme ich den Fehle weg?

Vielen Dank

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 16:43
von DetlefT
Hallo,

wie der Thementitel schon sagt: overflow-x gibt es in CSS2.1 nicht.
siehe: http://de.selfhtml.org/css/eigenschafte ... m#overflow

Erlaubte Werte sind: hidden, visible, scroll und auto

Lösung: nimm die Zeile raus.

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 16:50
von o0Pascal0o
Also kann ich nix machen. Oder weiß Jemand wofür die Zeile konkret gut ist? Also ich nehme mal an, dass sie irgendwofür ja wichtig sein muß, sonst wäre sie ja nicht da.

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 19:04
von John Doe
Das gibt es erst in CSS 3.0
http://www.css4you.de/overflow-x.html

Dort ist auch erklärt wozu das gut oder nicht ist.

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 19:45
von Talk19zehn
Hello,

meiner persönlichen Auffassung nach, bedarf es keiner Löschung, da ein Standard erfüllt wird, der nicht grundlos zum Einsatz kommt.



:wink: :wink:
Viele Grüße

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 20.01.2011 20:47
von DetlefT
Hallo,

natürlich "muss" es nicht gelöscht werden, da der Browser im Zweifel drüber weg liest. Aber wenn man nach CSS2.1 valide sein will ... :wink:

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 21.01.2011 15:02
von o0Pascal0o
Aha. Also ist es in CSS3.0 drin. 3.0 ist doch die aktuellere Version, also wird es dann bald eh unwichtig, CSS 2.1 valide zu sein, oder ist das was komplett unterschiedliches?

Re: stylesheet.css ->overflow-x existiert nicht in CSS 2.1

Verfasst: 21.01.2011 17:48
von DetlefT
o0Pascal0o hat geschrieben:Aha. Also ist es in CSS3.0 drin. 3.0 ist doch die aktuellere Version, also wird es dann bald eh unwichtig, CSS 2.1 valide zu sein, oder ist das was komplett unterschiedliches?
Die große Frage ist nur, wann 3.0 kommt! Das ist wie mit phpBB 3.1 - es ist fertig, wenn es fertig ist. Vielleicht nächste Woche, vielleicht in 2 Jahren. Bis dahin ist es kein Standard.