Re: Style Sheet Equiv Question

by "Mary Appleby" <maryalycea(at)earthlink.net>

 Date:  Sat, 9 Mar 2002 16:34:20 -0800
 To:  "HWG Techniques" <hwg-techniques(at)hwg.org>
 References: 
  todo: View Thread, Original
You can use these also:

text-align: right
text-align: left
text-align: center
text-align: justify

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.

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.

HTH

----- 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


> 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="top" align="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
>
>
>
>
>

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