Re: Style Sheet Equiv Question

by "Kehvan M. Zydhek" <kehvan(at)zydhek.net>

 Date:  Sat, 9 Mar 2002 15:25:00 -0800
 To:  "Mary Appleby" <maryalycea(at)earthlink.net>,
"HWG Techniques" <hwg-techniques(at)hwg.org>
 References:  computer
  todo: View Thread, Original
> ...(An image can't have padding.)...

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:

<.img src=3D"(image)" alt=3D"Image 1" style=3D"width: 75px; height: =
100px; padding: 0px 5px 5px 5px; float: right;" />

Since it validates, then I would say that images CAN have padding. ;-)

Hope this clears up a misconception.
Kehvan M. Zydhek

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=

:: 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: "Mary Appleby" <maryalycea(at)earthlink.net>
To: "HWG Techniques" <hwg-techniques(at)hwg.org>
Sent: Saturday, March 09, 2002 16:34
Subject: Re: Style Sheet Equiv Question


> You can use these also:
>=20
> text-align: right
> text-align: left
> text-align: center
> text-align: justify
>=20
> These are supposed to be used with text. To align an image, set equal

> margins on each side. (An image can't have padding.) If the image is =
inside

> a paragraph or div it will align according to the alignment setting =
for the
> parent element.
>=20
> To give an image its own alignment, the margin settings would be:
> margin-left:
> margin-right:
> each with a value after the colon. You can use any of the types of =
value
> that you can with regular HTML - pixels (px), points (pt), etc.
>=20
> HTH
>=20
> ----- Original Message -----
> From: "Nathan" <natelyle(at)chartermi.net>
> To: "HWG Techniques Email List" <hwg-techniques(at)hwg.org>
> Sent: Saturday, March 09, 2002 12:31 PM
> Subject: Style Sheet Equiv Question
>=20
>=20
> > I'm attempting to make the move to using style sheets instead of =
many
> > traditional HTML attributes, in the attempt to upgrade my =
practices...
> > though old habits die very painfully and hard. <sigh> Anyway, my =
question
> > is this: what is the style sheet equivalent to the vertical and =
horizontal
> > align attributes in the following snippet?
> >
> > <.td valign=3D"top" align=3D"left">
> >
> > So far all I've found is the text property: vertical-align , but I'm =
not
> > sure that's what should be used or not. I want to align the content =
of a
> > cell, whether it's text or images or whatever.
> >
> > ~Nathan Lyle
> > E-mail: natelyle(at)chartermi.net
> > Web: http://www.nathanlyle.com
> > Phone: (906)485-4806
> >
> > "A good style should show no sign of effort. What is written should =
seem a
> > happy accident." - Somerset Maugham
> >
> >
> >
> >
> >
>=20
>=20
>=20
>=20

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA