WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: rikkibr on January 26, 2009, 11:10:43 PM

Title: VSpace and HSpace not working correctly
Post by: rikkibr on January 26, 2009, 11:10:43 PM
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
Title: Re: VSpace and HSpace not working correctly
Post by: marathoner on January 27, 2009, 03:15:36 AM
Your page DOCTYPE is XHTML strict. However vspace and hspace are not valid attributes in XHTML. Use CSS margin or padding.
Title: Re: VSpace and HSpace not working correctly
Post by: rikkibr on January 27, 2009, 09:37:40 AM
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?
Title: Re: VSpace and HSpace not working correctly
Post by: erpe0812 on January 27, 2009, 11:21:22 AM
Hi

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

rgds

erpe
Title: Re: VSpace and HSpace not working correctly
Post by: marathoner on January 27, 2009, 03:57:45 PM
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.
Title: Re: VSpace and HSpace not working correctly
Post by: rikkibr on January 27, 2009, 11:44:26 PM
aahhh! Thanks guys!