Currently, I am in the process of learning CSS and working on developing a game that involves time and score.
In short, here is what I aim to achieve:
This is what I have so far:
You can find my progress on jsFiddle: http://jsfiddle.net/yZKTE/
CSS:
#boxbuttons {
/*text-align: center;*/
/* margin: 20px;*/
display: block;
top:0;
left: 0;
right: 0;
padding:50px;
/*width:900px;*/
}
#boxbuttons .button {
text-transform: uppercase;
padding: 5px 10px;
margin: 5px;
border-radius: 10px;
cursor: pointer;
}
#rezz
{
background:url(../images/score.png) left top;
width:35px;
height:35px;
background-repeat:no-repeat;
}
#counter{
margin-left:50px;
}
#time
{
background:url(../images/time.png) right top;
width:35px;
height:35px;
background-repeat:no-repeat;
}
#ttime{
margin-right:50px;
}
HTML:
<span id="boxbuttons">
<span class="button" id="rezz">
<span id="counter">0</span>
</span>
<span class="button" id="time"><span class="button" id="ttime"></span></span>
</span>