VSpace and HSpace not working correctly


marathoner

Or, if you want every image to use the same margin & padding then just style the IMG tag in your style sheet so that you don't need to even assign a class name.

erpe0812

Hi

define a special class  and use this class to format these images.

rgds

erpe

rikkibr

Thanks!

Always learning something new :-)

Do I need to set css margin or padding to each picture that I add to a page or is it possible to set it globally?

marathoner

Your page DOCTYPE is XHTML strict. However vspace and hspace are not valid attributes in XHTML. Use CSS margin or padding.

rikkibr

Can someone tell me why the vspace which is set to 10 currently does not kick in on the following site?

http://194.105.250.242/~stis

Its the ship picture, the text above it is too close to the picture in FF3 and Chrome. It is however working fine in IE7.

Thanks