Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Image H-centered when absolute, or bottomed when in block display?

Started 1 month, 1 week ago by ineloquucius
The year is 2009, and surely there is a way to such a simple thing as displaying photos of unknown size in the H-center of a Div--without running off the screen. Oh wait, there isn't. The problem: Given unknown picture size, 1) if I don't specify absolute positioning (or fixed), I can center it but then it floats to the top of the parent which looks silly. 2) If I do ...
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: CSS Help  CSS Help - forum profile
Total authors: 2 authors
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Other posts in this thread:

erj145 replied 1 month ago
Quote: Originally Posted by ineloquucius The year is 2009, and surely there is a way to such a simple thing as displaying photos of unknown size in the H-center of a Div--without running off the screen. Oh wait, there isn't. The problem: Given unknown picture size, 1) if I don't specify absolute positioning (or fixed), I can center it but then it floats to ...

 

Top contributing authors

Name
Posts
ineloquucius
1
user's latest post:
Image H-centered when absolute,...
Published (2009-11-12 20:49:00)
The year is 2009, and surely there is a way to such a simple thing as displaying photos of unknown size in the H-center of a Div--without running off the screen. Oh wait, there isn't. The problem: Given unknown picture size, 1) if I don't specify absolute positioning (or fixed), I can center it but then it floats to the top of the parent which looks silly. 2) If I do specify absolute (or fixed) positioning, I can't center it....
erj145
1
user's latest post:
Image H-centered when absolute,...
Published (2009-11-13 20:24:00)
Quote: Originally Posted by ineloquucius The year is 2009, and surely there is a way to such a simple thing as displaying photos of unknown size in the H-center of a Div--without running off the screen. Oh wait, there isn't. The problem: Given unknown picture size, 1) if I don't specify absolute positioning (or fixed), I can center it but then it floats to the top of the parent which looks silly. 2) If I do specify absolute (or...

Related threads on "Dev Shed Forums - Open Source web development":

Related threads on other sites:

Thread profile page for "Image H-centered when absolute, or bottomed when in block display?" on http://www.devshed.com. This report page is a snippet summary view from a single thread "Image H-centered when absolute, or bottomed when in block display?", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity