Re: Style Sheet Equiv Question
by "Kehvan M. Zydhek" <kehvan(at)zydhek.net>
|
Date: |
Sat, 9 Mar 2002 22:51:29 -0800 |
To: |
"Darrell King" <darrell(at)webctr.com>, "HWG Techniques" <hwg-techniques(at)hwg.org> |
References: |
computer zydhek1 king |
|
todo: View
Thread,
Original
|
|
Margins, padding... I guess on the site I'm working on, where I'm trying =
to keep everything validating to XHTML Strict, the two act about the =
same. In my use, I've been using margins for just that: margins, and =
using padding for adding space around things I don't want bumping into =
each other... To be honest, I can't actually think of any explicit =
differences between Margins and Padding... they both seem to do the same =
exact thing, unless I'm drawing a border or line, where they do affect =
where that is placed...
Kehvan
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=
:: NORTON ANTI-VIRUS 2002 scanned this email prior to sending. It is =
free
:: of any known embedded or attached viruses, trojans, or internet =
worms.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=
----- Original Message -----=20
From: "Darrell King" <darrell(at)webctr.com>
To: "HWG Techniques" <hwg-techniques(at)hwg.org>
Sent: Saturday, March 09, 2002 15:58
Subject: Re: Style Sheet Equiv Question
> Margin would seem to be more useful, as it puts space between the =
border and
> the surrounding elements...?
>=20
> D
>=20
>=20
> ----- Original Message -----
> From: "Kehvan M. Zydhek" <kehvan(at)zydhek.net>
>=20
>=20
> > ...(An image can't have padding.)...
>=20
> Who says? I'm working on a site right now where I have some images =
floated
> left or right AND have padding around them (so the text doesn't bunch =
up on
> them), all set with INLINE styles (in the IMG tag), and the Homesite =
and W3C
> XHTML validators have absolutely no problem with this. An image (and =
any
> other element) CAN have padding. It's possible and extremely useful. =
Here's
> a sample IMG tag that validates:
>=20
> <.img src=3D"(image)" alt=3D"Image 1" style=3D"width: 75px; height: =
100px;
> padding: 0px 5px 5px 5px; float: right;" />
>=20
> Since it validates, then I would say that images CAN have padding. ;-)
>=20
>=20
>=20
>=20
>=20
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA