PDA

View Full Version : HTML attribs --> CSS. Is this right?


beetle
08-08-2002, 05:29 PM
<img src="pic.gif" width="8" height="11" hspace="6" align="absmiddle" />with CSS becomes
<img src="pic.gif" class="navArrow" />

<style>
img.navArrow {
width: 8px;
height: 11px;
padding-left: 3px;
padding-right: 3px;
Don't know the align....HELP!
}
</style>Thanks :D

redhead
08-08-2002, 06:39 PM
vertical-align: center;
text-align: center;

thatll put it in the middle horizontally and vertically.

Zvona
08-09-2002, 09:48 AM
Originally posted by redhead
vertical-align: center;
text-align: center;

thatll put it in the middle horizontally and vertically.
vertical-align: middle;

http://www.w3schools.com/css/pr_pos_vertical-align.asp