Autor Zpráva
Kokša
Profil *
<head>
<link rel="stylesheet" type="text/css" href="1.css">
<link rel="stylesheet" type="text/css" href="2.css">
</head>
<body>
text-1
text-2
</body>

-----
Potřeboval bych, aby text-1 použil styly jen z 1.css a text-2 zas jen z 2.css. Poradíte mi jak to udělat?
BaTeCzKo
Profil
Stylovat text-1 a text-2 tímto způsobem:

STYLY.CSS

body {...}
#text-1 a {color: ....} /*priklad nastylovani odkazu v divu text-1*/
#text-2 a {color: ....} /*priklad nastylovani odkazu v divu text-2*/
... atd.




STRANKA.HTML

<head>
<link rel="stylesheet" type="text/css" href="styly.css">
</head>
<body>

<div id="text-1">
text-1
</div>

<div id="text-2">
text-2
</div>

</body>
Kokša
Profil *
Dik.
Toto téma je uzamčeno. Odpověď nelze zaslat.

0