mit klasse von bild in HTML CSS einbinden?

3 Antworten

Versuchs mal mit einem Text statt einer Zahl.

Dient auch der Übersichtlichkeit.

Klassennamen können nicht mit einer Zahl beginnen:
https://www.w3.org/TR/CSS21/syndata.html#characters

Konkret:

In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit.
Messi796 
Fragesteller
 13.04.2023, 11:06

Danke, hat funktioniert👍

0

Musst der Klasse einen Namen geben der keine Zahl ist.

Messi796 
Fragesteller
 13.04.2023, 11:05

Danke, hat funktioniert

0
Messi796 
Fragesteller
 13.04.2023, 11:06

Danke hat funktioniert👍

1