Do it yourself: CSS für Profil und Blog
11.12.2015 um 18:21
Weiss hier grad jemand was ich ansprechen muss wenn ich möchte dass folgende Schrift für die ganze Seite angewendet wird?
{ font-family: Times, "Times New Roman", Georgia, serif; }
melden
Do it yourself: CSS für Profil und Blog
11.12.2015 um 18:32
Ich hab mal den hier versucht und es passiert nichts:
body { font-family: Times, "Times New Roman", Georgia, serif; }
html { font-family: Times, "Times New Roman", Georgia, serif; }
main { font-family: Times, "Times New Roman", Georgia, serif; }
textarea { font-family: Times, "Times New Roman", Georgia, serif; }
.body { font-family: Times, "Times New Roman", Georgia, serif; }
.html { font-family: Times, "Times New Roman", Georgia, serif; }
.main { font-family: Times, "Times New Roman", Georgia, serif; }
.textarea { font-family: Times, "Times New Roman", Georgia, serif; }
[at_user]Body[/at_user] { font-family: Times, "Times New Roman", Georgia, serif; }
@html { font-family: Times, "Times New Roman", Georgia, serif; }
[at_user]main[/at_user] { font-family: Times, "Times New Roman", Georgia, serif; }
@textarea { font-family: Times, "Times New Roman", Georgia, serif; }
das ganze soll dann als safari style enden
melden
Do it yourself: CSS für Profil und Blog
16.12.2015 um 11:40
Hallo :Y:
Folgendes Problem:
Es geht darum, aus dem Inhalt der .profile_info die Zeile "userxyz ist anwesend" auszublenden. Leider hat diese Zeile keine eigene Klasse, sondern nur ein <*b> Element.
Meine Idee war, .profile_info zunächst per visibility:hidden auszublenden (damit wäre auch das <*b> verschwunden) und die anderen Klassen per visibility:visible !important wieder sichtbar zu machen, weil auch dort <*b>-Elemente deklariert sind (Anzahl der Beiträge usw.):
.profile_info { visibility: hidden; }
.profile_info small { visibility: visible !important; }
.profile_posts { visibility: visible !important; }
.profile_last_post { visibility: visible !important; }
.created_threads { visibility: visible !important; }
.member_since { visibility: visible !important; }
Baue ich das css in mein Profil ein, funktioniert das ohne Probleme. Im Profil der Userin aber nicht!
Die zweite Kuriosität: markiere ich die html-Elemente mit dem Browser Entwicklungstool, werden mir alle css-Deklarationen angezeigt. Nur die für die .profile_info nicht. Im Quellcode steht aber alles so, wie es auch sein sollte.
Hat jemand eine Idee?
DANKE :Y:
PS: b natürlich ohne *
melden
Do it yourself: CSS für Profil und Blog
16.12.2015 um 23:23
du kannst auch schreiben
.profile_info b:first-child {
visibility: hidden;
}
.profile_posts b {
visibility: visible !important;
}
ist kürzer als dein geschnörkel da
aber in dein meisten fällen, wenn bei anderen was nicht geht, was in sonst jedem anderen profil kein problem ist, dann stimmt in deren code irgendwas nicht
und nur weil du den fehler nicht findest bedeutet das nicht, dass es ihn nicht gibt
Anzeige
2x zitiertmelden