sunny
06-05-2005, 04:59 PM
Hi,
I wanted to color the 'title' of the image using css.But wasn't successful.
The code:
<style>
body{
title{color:red;background:black}
}
</style>
And html code:
<IMG SRC="xyz.jpg" title="my pic">
I know that DD has got a script for this at:
http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm
But i would like to do it with the help of css, if it's possible.
Secondly,
If it's not possible, then whether use of '.title' i.e. a class name would do .then the code would go like this:
<style>
body{
.title{color:red;background:black}
}
</style>
And html code:
<IMG SRC="xyz.jpg" title="my pic" class="title">
Do also tell me whether i can use two classes or i.d's within one tag.
In this case, one class for image and another for title.
I wanted to color the 'title' of the image using css.But wasn't successful.
The code:
<style>
body{
title{color:red;background:black}
}
</style>
And html code:
<IMG SRC="xyz.jpg" title="my pic">
I know that DD has got a script for this at:
http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm
But i would like to do it with the help of css, if it's possible.
Secondly,
If it's not possible, then whether use of '.title' i.e. a class name would do .then the code would go like this:
<style>
body{
.title{color:red;background:black}
}
</style>
And html code:
<IMG SRC="xyz.jpg" title="my pic" class="title">
Do also tell me whether i can use two classes or i.d's within one tag.
In this case, one class for image and another for title.