<style>
body {
background-color: #FFFFFF;
}
.blue {
background-color: blue;
}
.yellow {
background-color: yellow;
}
div {
display: inline-block;
height: 100px;
width: 100px; }
</style>
<div class= "blue">ddddd</div>
<div class ="yellow">dddd</div>
```[/quote]
Ok, the problem in your code is the name inside the "class" i change the div class to blue and yellow. And know is working. and the end of the <code>div {} </code> was not close .
I think you was trying to put a link style , if you want to do that you need to do this:
<div class="name of your div" style="background-color :#0000FF"</div>