Hazel Shawhshail
03-30-2003, 07:09 AM
Is there a way to set a designated amount of hspace and vspace for every image on the page in the CSS?
|
View Full Version : Hspace and vspace in CSS Hazel Shawhshail 03-30-2003, 07:09 AM Is there a way to set a designated amount of hspace and vspace for every image on the page in the CSS? epolady 03-30-2003, 07:15 AM There really isn't a way. I did read up on a tip from another forum though, here's a link http://www.webmasterworld.com/forum21/2634.htm pb&j 03-30-2003, 01:39 PM perhaps try this... img { padding : #px #px #px #px; } fill in the number parts. the values go in order of top, right, bottom, left. if you want the same values in each side, it can be condensed into this... img { padding : #px; } and the value will be applied to all sides. one note though : this property is within the "border" area, so if you have a border specified, this will create a buffer area between it and your image. in that case use MARGIN instead of PADDING. margin is a buffer outside of the border area. hope that works for ya. Hazel Shawhshail 03-31-2003, 12:15 AM Thanks! Margin worked. |