Closed Thread Icon

Preserved Topic: probably a dumb question... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18209" title="Pages that link to Preserved Topic: probably a dumb question... (Page 1 of 1)" rel="nofollow" >Preserved Topic: probably a dumb question... <span class="small">(Page 1 of 1)</span>\

 
wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 07-19-2001 06:02

... but that is nothing new for me.

using css, can you use align: center for an image? seems like I should be able to, but I can't seem to do it, and can find nothing in my books or on the css sites.

thanks

Barry
Bipolar (III) Inmate

From: Arcata, CA, USA
Insane since: Aug 2000

posted posted 07-19-2001 20:07

Why don't you just use HTML...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-19-2001 20:15

Well, he's probably doing the right thing by trying CSS, since just about anything that HTML used to do but CSS can do now has been deprecated.

I think you have two options, wcr, as far as CSS goes: try

margin-left:auto;
margin-right:auto;

and then, if that doesn't work, try putting this in the element that *contains* the image:

text-align:center;

I'm not sure align:center even makes sense with CSS.

wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 07-19-2001 21:01

Yes, I am trying to bring myself up to css compliance. As far as I can tell the align:center does indeed not make sense. It just seemed intuitve that if there is a text-align:center, that there would be something similar for images. I was using it as img.whatever{align:center}.

why would the :auto designation center an image?

thanks a bunch for the info mr. slime



[This message has been edited by wcr one (edited 07-19-2001).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-19-2001 22:37

Well, I think the logic is, when the margins on both side are set to "auto", the browser will divide the available margin space up equally between them, thereby centering the image.

Not sure it'll work though.

wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 07-19-2001 23:00

well whether it works or not thanks for the time and info

« BackwardsOnwards »

Show Forum Drop Down Menu