25521
Apr 13, 2008, updated at 21:25:02 (UTC)
10153
2
0
Fließtext Farbe ändern ohne Zeilenumbruch (AnfängerFrage)
Erste Anfänge in CSS
Hallo,
Zu erst einmal Ich bin noch nicht so fit in HTML, PHP und CSS. Mein Problem ist das ich in einem Absatz das Format von nur einem Wort ändern mochte ohne einen Zeilenumbruch zu bekommen.
Beispiel:
Ich habe folgende CSS Datei:
HTML Code: <p id=“InhaltText“>Hallo Welt, da bin ich.</p>
Ausgabe:
Hallo Welt, da bin ich.
Nun mein Problem: ich mochte nur das Welt in Rot haben.
Wie mache ich das?
Meine Idee ist in die CSS Datei noch folgendes rein zu schreiben:
Kann ich das so machen und wenn ja wie müsste ich den HTML Code ändern?
Zu erst einmal Ich bin noch nicht so fit in HTML, PHP und CSS. Mein Problem ist das ich in einem Absatz das Format von nur einem Wort ändern mochte ohne einen Zeilenumbruch zu bekommen.
Beispiel:
Ich habe folgende CSS Datei:
#InhaltText {
font-family:Arial,sans-serif;
font-size:14px;
color:black;
}
HTML Code: <p id=“InhaltText“>Hallo Welt, da bin ich.</p>
Ausgabe:
Hallo Welt, da bin ich.
Nun mein Problem: ich mochte nur das Welt in Rot haben.
Wie mache ich das?
Meine Idee ist in die CSS Datei noch folgendes rein zu schreiben:
#InhaltText {
font-family:Arial,sans-serif;
font-size:14px;
color:black;
}
#InhaltTextBesonderes {
font-family:Arial,sans-serif;
font-size:14px;
color:red;
}
Kann ich das so machen und wenn ja wie müsste ich den HTML Code ändern?
Please also mark the comments that contributed to the solution of the article
Content-Key: 85402
Url: https://administrator.de/contentid/85402
Printed on: April 26, 2024 at 16:04 o'clock
2 Comments
Latest comment