I have a little problem with CSS. I'm following a book to learn CSS3 and I just discovered the function Transition. So I decided to make an attempt and I can not figure out where I'm wrong, I hope you can help me.
This is my Index.html file
<html>
<head>
<title>My Test</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="box"></div>
<div class="ssin"></div>
</body>
</html>
nothing special ! and this is the main.css
.box{
height: 200px;
width: 200px;
background-color: #333333;
}
.ssin{
height: 200px;
width: 200px;
background-color: red;
}
.box:hover .ssin{
width: 500
}
i think the problem is around here ...
.box:hover .ssin{
width: 500;
}
If I hove .box nothing happen, theoretically it should change the width of ssin div.
Could you please help me (I know this is stupid, but I'am still learning)
Thank you