|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am trying to use CSS to create a white space around an image. Is there a particular tag or attribute to get this done? If not what are the other solutions? I know I can use the hspace within each img element, but I would rather be able to change each image globally buy using CSS.
Thanks in advance, Sean |
|
#2
|
|||
|
|||
|
You can do something like:
img {margin: 25px;} This'll add a 25px margin around all sides of the image. If you only want the space on certain sides, use margin-top, margin-bottom, margin-right or margin-left. http://www.w3.org/TR/REC-CSS1#margin |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Questions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|