PDA

View Full Version : HTML css thumbnails



mikenam
09-07-2007, 09:21 AM
I have this hw problem in which I have to create a style sheet that must have certain styles. It says All thumbnail images should be displayed using width 50px and height 40px.
I can do images
IMG
{
width: 150px;
height: 200px;
}

but how do i do thumbnails.

and another one i can't seem to get is

Paragraphs used to display mailing addresses should be justified, and use Verdana font, 10pt. The text should be Green on yellow background.

would i do? I don't see how the style sheet would recognize an address.

addresses
{
}

thanks

sergers
09-07-2007, 01:07 PM
numerous ways to do this:

in css file you specify:

tag.class
{

}

so for your thumbnails

IMG.thumbnails
{
width: 50px;
height: 200px;
}

then you can surround your <img> tags with <div class="thumbnails"></div> tags or you can specify the thumbnails class within your image tags.
<img class="thumbnails"

http://www.w3schools.com/css/css_dimension.asp

what you need to do is quite simple... just google "css class"

mikenam
09-07-2007, 09:20 PM
i did i went to about.com found some great info but havn't found anything w/ thumbnails.

thx for the site