AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Mambo Template CSS

Ein Thema von DGL-luke · begonnen am 13. Jun 2005 · letzter Beitrag vom 13. Jun 2005
Antwort Antwort
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#1

Mambo Template CSS

  Alt 13. Jun 2005, 17:10
weiss jemand zufällig, was das hier ist:

Code:
#main_outline {
   width: 848px !important;
   width: 850px;
   border: 1px solid #cccccc;
   padding: 2px;
   background: #ffffff;
}
zwei auszeichnungen für width, eine davon !important.

ist das CSS-konform, oder ist das eine Mambo-Spezialität?
(In letzterem Fall werde ich mich natürlich gerne direkt an Mamboserver.com wenden)
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
Benutzerbild von flomei
flomei

Registriert seit: 17. Jan 2003
Ort: Schieder-Schwalenberg
2.094 Beiträge
 
Delphi 2005 Personal
 
#2

Re: Mambo Template CSS

  Alt 13. Jun 2005, 17:13
SelfHTML: klick

MFG Florian
Florian Meier
... ist raus.
Vielen Dank für die Zeit mit euch!
http://www.flomei.de -- http://www.md5hash.de
  Mit Zitat antworten Zitat
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#3

Re: Mambo Template CSS

  Alt 13. Jun 2005, 17:15
1. ich habe selfhtml 8.0 lokal auf meinem rechner
2. ich bin nicht blöd
3. aus dem ausdruck "css-konform" sollte doch hervorgehen, dass ich mich doch ein wenig auskenne damit
4. aus dem bloßen fakt, dass ich mambo benutze und templates verändere, sollte auch hervorgehen, dass ich mich doch ein wenig auskenne damit

sachdienliche hinweise sind aber immer noch erbeten an ihre örtliche DP, thread #56372
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
Benutzerbild von flomei
flomei

Registriert seit: 17. Jan 2003
Ort: Schieder-Schwalenberg
2.094 Beiträge
 
Delphi 2005 Personal
 
#4

Re: Mambo Template CSS

  Alt 13. Jun 2005, 17:21
Zitat von DGL-luke:
1. ich habe selfhtml 8.0 lokal auf meinem rechner
Schön...
Zitat von DGL-luke:
2. ich bin nicht blöd
Wer hat das behauptet?
Zitat von DGL-luke:
3. aus dem ausdruck "css-konform" sollte doch hervorgehen, dass ich mich doch ein wenig auskenne damit
Schön für dich. Jeder kann nen paar Fachwörter lernen und damit um sich werfen...
Zitat von DGL-luke:
4. aus dem bloßen fakt, dass ich mambo benutze und templates verändere, sollte auch hervorgehen, dass ich mich doch ein wenig auskenne damit
Ich feier dich bei Gelegenheit... Mambo-Nutzer... Templates verändern... Toll...

Zitat von DGL-luke:
sachdienliche hinweise sind aber immer noch erbeten an ihre örtliche DP, thread #56372


Anscheinend denken die Leute nicht mehr selbst nach...
Hast du vielleicht auch mal überlegt beim W3 vorbeizuschauen? Die machen ja "die Regeln". Da findest du sicherlich raus ob !important css-konform ist oder nicht. Adresse kannst du wahrscheinlich selbst raussuchen, bist ja vom Fach...

MfG Florian
*kopfschüttelnd weitersurft*
Florian Meier
... ist raus.
Vielen Dank für die Zeit mit euch!
http://www.flomei.de -- http://www.md5hash.de
  Mit Zitat antworten Zitat
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#5

Re: Mambo Template CSS

  Alt 13. Jun 2005, 17:32
sorry, wollte dich nicht beleidigen.

aber du hast recht, am besten schau ich mal bei w3 vorbei. danke. (www.w3.org? naja egal, ich bin ja vom fach )

ps: dein weblog is geil
pps: deine zitate wären ein kandidat für die niveaudiskussion
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#6

Re: Mambo Template CSS

  Alt 13. Jun 2005, 21:03
Code:
CSS attempts to create a balance of power between author and user style sheets. By default, rules in an author's style sheet override those in a user's style sheet (see cascade rule 3).

However, for balance, an "!important" declaration (the delimiter token "!" and keyword "important" follow the declaration) takes precedence over a normal declaration. Both author and user style sheets may contain "!important" declarations, and user "!important" rules override author "!important" rules. This CSS feature improves accessibility of documents by giving users with special requirements (large fonts, color combinations, etc.) control over presentation.

Declaring a shorthand property (e.g., 'background') to be "!important" is equivalent to declaring all of its sub-properties to be "!important".

Example(s):

The first rule in the user's style sheet in the following example contains an "!important" declaration, which overrides the corresponding declaration in the author's style sheet. The second declaration will also win due to being marked "!important". However, the third rule in the user's style sheet is not "!important" and will therefore lose to the second rule in the author's style sheet (which happens to set style on a shorthand property). Also, the third author rule will lose to the second author rule since the second rule is "!important". This shows that "!important" declarations have a function also within author style sheets.

/* From the user's style sheet */
p { text-indent: 1em ! important }
p { font-style: italic ! important }
p { font-size: 18pt }

/* From the author's style sheet */
p { text-indent: 1.5em !important }
p { font: normal 12pt sans-serif !important }
p { font-size: 24pt }
also: !important bedeutet, alle nicht als !important ausgezeichneten propertys werden überschrieben.

da ist mir aber immer noch klar, welchen sinn es haben soll, so etwas zu machen:

Code:
#main_outline {
   width: 848px !important;
   width: 850px;
   border: 1px solid #cccccc;
   padding: 2px;
   background: #ffffff;
}
Es wird zuerst als important deklariert, und dann kommt danach gleich eine weitere, die aber gar nicht zum tragen kommen kann, weil ja die erste important ist.
kann mir das irgendjemand erklären?
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
Benutzerbild von Mystic
Mystic

Registriert seit: 18. Okt 2003
Ort: Flerzheim
420 Beiträge
 
Turbo Delphi für Win32
 
#7

Re: Mambo Template CSS

  Alt 13. Jun 2005, 22:33
Sieht nach einem Hack aus, um die falsche Box Model Implementation des IE5 (und IE6 im Quirks Mode) auszugleichen.

848px + 2px border (1px pro seite) = 850px

Da der IE5 vermutlich !important nicht kennt, nimmt er den zweiten Wert.
Jan Steffens
Der Fachwortgenerator - 100% Schwachsinn --- Der UPnP Router Manager - Kommentare erwünscht!
  Mit Zitat antworten Zitat
Antwort Antwort


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 aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:33 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz