Viken Karaguesian wrote:
[color=blue]
> Hello all,
>
> I'm trying to create a Div style for a website that I'm playing around
> with.
>
> I'd like the DIV itsself to be center-aligned, but the text within the
> div to be left-aligned. My div style looks like this:
>
> div.main { width: 460; height: auto; text-align: left }
>
> I've tried working other commands in there like:
> "align: center" and "position: center" but have not been able to
> acheive what I want. How can this be accomplished?[/color]
For IE5 you need to set text-align:center on the parent element, for
standards compliant browsers (and IE6 with a doctype) you need to set
the left and right margin of the div to equal sizes. This may be a
percentage, a fixed width, or just "auto". In your case, auto seems
the right way.
http://locusmeus.com/html-css/centeringpage.html
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Specials - Too much too young