hwg-techniques archives | Jun 2000 | new search | results | previous | next |
RE: Margins for Imagesby "Arcady"<arcady(at)jps.net> |
|
Technically yes; they are deprecated. BUT this doesn't mean that the browsers won't sometimes decide to add in a vspace/hspace of 1 on their own. This most often happens at a point where any space around the image will disrupt the design. So while you should not use them to create space; it might be a good idea to always set them to zero just in case... But yes, use CSS's margin, border, and position attributes to do this stuff 'properly'. <somehtmltag style="margin: 0px 0px 0px 0px;"> Change the number from 0 to whatever you need top right bottom left. >Good advice. > >I'd hate to be the evil one to point this out, but hspace and vspace are >deprecated. You probably want to get used to coding your margins in CSS. > >Now, who wants to be the first one to point out that NS3 doesn't support >CSS? ;) > >> -----Original Message----- >> From: Jeffrey Cohen [SMTP:jcohen02(at)snet.net] >> Sent: Tuesday, June 06, 2000 8:06 PM >> To: HTML Writers Guild >> Subject: Re: Margins for Images >> >> For simple things you can always put the image in a single cell table and >> put >> padding around the cell. >> >> Guaranteed to work! >> >> Jeffrey >> >> jkeilholz(at)thedepot.com wrote: >> >> > Hello All, >> > >> > I was wondering if any one knew if there was an attribute that you can >> apply >> > to img tags that would create a margin so text didn't bump up next to >> it. I >> > tried marginwidth marginheight but that didn't seem to work and borders >> > aren't doing it either. if anyone knows of something I can use let me >> know. >> > >> > Thanks in Advance, >> > Joe Keilholz >> > On Site Producer >> > thedepot.com >> > (336) 373-3488 > >
HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA