Bad Credit Mortgages - Online Image Resizer - Loans - Bad Credit Mortgages - Debt Consolidation

PDA

View Full Version : adjust image width based on screen resolution


pizzaman
Sep 30th 2006, 4:49 pm
hello
i have an image on my site and want its width to be half of the screen no matter what the size of the screen is
also can i reduce the space between my lines with h4 tag
i hope you understand

phree_radical
Sep 30th 2006, 11:01 pm
You can use a percentage for the width attribute such as <img src="whatever" width="50%">

For space between lines with <h4> tag, all I know is to use the style rule h4{line-height:0}
Also I think you could set a negative margin-bottom such as h4{margin-bottom:-8px}

pizzaman
Oct 1st 2006, 11:58 am
thanks everything is nice now