Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to center in CSS

2 views
Skip to first unread message

Steve

unread,
Aug 4, 1997, 3:00:00 AM8/4/97
to

Pre stylesheets- the <center> and <align=center> tags may have had their
problems and abuses but they both "worked".

Now I am trying to utilize stylesheets on a large corporate intranet and
I am having difficulty centering images and elements on pages. The lack
of support for the "auto" value in existing browsers is driving me crazy.
If all staff had 13 inch monitors set on 640 x 480 I could work around
this with fixed margin values; but of course that is not the case.

I have users with 640, 800 1024 and 1280 screen widths - I need my center
tag. What do I do ?? I'm sure there has to be a straight forward
solution. Please clue me in, my ignorance is taking up lots of time.

Thanks.

Michael A Vitale

unread,
Aug 5, 1997, 3:00:00 AM8/5/97
to

Steve <s...@soca.com> wrote:

>Pre stylesheets- the <center> and <align=center> tags may have had their
>problems and abuses but they both "worked".
>Now I am trying to utilize stylesheets on a large corporate intranet and
>I am having difficulty centering images and elements on pages.

I think the style rule you're looking for is text-align : center.

I had simply align : center in my stylesheet, but ran it through CSS-Check
this morning (http://www.htmlhelp.com/tools/), and discovered an error with
simply "align" and when I changed it to text-align, the CSS "validated."

-Mike
Mike Vitale | Delta Sigma Pi District Director | http://www.dspnet.org/
Personal: http://www.cs.utexas.edu/users/rodney/ | rod...@cs.utexas.edu
Work : http://www.arlut.utexas.edu/~fsatswww/ | vit...@arlut.utexas.edu
To love another person is to see the face of God. - Les Mis
<NOSPAM>My Email address is really "rodney" not "rod.ney"</NOSPAM>


Rick

unread,
Aug 9, 1997, 3:00:00 AM8/9/97
to

In article <33E683...@soca.com>, s...@soca.com says...

> I have users with 640, 800 1024 and 1280 screen widths - I need my center
> tag. What do I do ?? I'm sure there has to be a straight forward
> solution. Please clue me in, my ignorance is taking up lots of time.

I still use <div align=center> or <center>. It's there, it's easier, go
for it!

Rick


--
The Duck Fart
http://www.geocities.com/NapaValley/2382/
...dedicated to the finer and funner things in life

0 new messages