Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS - Vertical Center??

CSS - Vertical Center??
Thread Tools
Dedicated MacNNer
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 11, 2004, 12:53 AM
 
Hi--

I have a question for the resident CSS studs: I have a series of photos (portrait and landscape orientation) that I'd like to center *vertically* within a block (<div>). For example: the portrait images are 200x300, and the landscape are 350x200. Each image is contained by a div class, and pinned to the right side of the parent div block.

Im experiencing severe brain lock--any suggestions?

thx
ppmax
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Mar 11, 2004, 09:13 AM
 
there's a nice tip on this at http://www.wpdfd.com/editorial/wpd0103.htm
(it's at the very bottom of the page, titled top tip)

basically there isn't an easy-easy way to do it, but it isn't that bad.

--will
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2