Hej.
Chce zrobić stronę w html i chcę zrobić wybór motywu (np jak jest na tym forum).
i nie wiem jak wykryć czy jakiś div jest kliknięty.
z css-a mam tyle kodu
body
{
background-color: #303030
}
#With
{
width: 200;
hight: 120;
background-color: #ffffff;
color: #000000;
text-algin: center;
float; left;
}
#With:hover
{
width: 200;
hight: 120;
background-color: #dddddd;
color: #333333;
text-algin: center;
float; left;
}
#Black
{
width: 200;
hight: 120;
background-color: #000000;
color: #ffffff;
text-algin: center;
float: left;
}
#Black:hover
{
background-color: #333333;
color: #dddddd;
}
wpadłęm na pomysł żeby zrobić coś takiego
<html>
<head>
<link href="style.css" rel="Styleshee" type="text/css"/>
</head>
<body>
<a href="Index2.html">
<div id="with">
Jasny
</div>
</a>
<a href="Index.html">
<div id="Black">
Czarny
</div>
<a/>
</body>
</html>
Czyli w skrócię Motyf jasny jest w osobnym pliku html.