Tuesday 30 October 2012

Background color inside div

background color inside dive is easy.... this is it:

<style>
.test {
background-color:#dedede;
color:#000000;
width:300px;
height: 200px;
}
</style>
<div class="test">put content here</div>


there you go. the result of this code is just a 300px width box and 200px height with a grey color inside the box.



Result:

put content here

No comments:

Post a Comment