This blog has moved to http://ikhwanhayat.net

Friday, November 18, 2005

Multiple Item for HTML Class

I just knew that we can put multiple classes in the "class" attribute for a HTML tag. Observe...

<html>
<style>
.RedBox {
    background: mistyrose;
    border: 1px solid;
}

.AlignedRight   {
    text-align: right;
}

.Spaced {
    letter-spacing : 3px;
}
</style>
<body>
<input type="textbox" class="RedBox AlignedRight Spaced" value="0.00" />
</body>
</html>
p.s: Got this from some blog. I forgot to keep the URL. Credit for him/her.

2 Comments:

At 11/21/2005 09:37:00 am, Anonymous Anonymous said...

ooo buleh rupernye ...

 
At 2/17/2006 03:58:00 pm, Anonymous Anonymous said...

aku dah lama tau..Ada satu mamat bgtau kat aku....
credit to him: amin2u.blogspot.com

 

Post a Comment

<< Home