Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

give the img-tag a width in .css file

Status
Not open for further replies.

dijo123

Programmer
Jan 13, 2004
30
SE
Hello,
I would like to give my <img>-tag a width and an heigth in a css-file.
Do I have to give the img-tag a class name? Like:
<img class=img> I want to prevent that. (I have lots of img-tags)


/D
 
sample CSS:
Code:
img {width: 10px; height: 50px}

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Thank you!
I thought I had tried that, but I had not!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top