DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Design

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-11-2008, 09:23 PM   #6
iamback
Member
 
iamback's Avatar
 
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
Default

Quote:
Originally Posted by dacoyle View Post
No, not right. I'm asking how vertical-align works, not a work around.
That's asking the wrong question if you don't want to use a table.

Vertical-align basically does two things: 1) align an object within a table cell, 2) align a replaced element with respect to text.

You have the opposite problem here placing text with respect to a replaced element (image). Using vertical margin or vertical padding is not a workaround but simply the way to do it (at least if you have multi-line text). If the text is a single line, try giving it the same line-height as the height of the image and the surrounding div are high - in pixels.

As to "how it works", the full deal is here

   
__________________
Marjolein Katsma
Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.
Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog
iamback is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS positioning problem sooshi Web Site Building & Maintenance 9 02-18-2008 12:36 PM
CSS positioning help dacoyle Web Site Building & Maintenance 23 02-24-2007 11:32 AM
CSS vertical navigation bar dthomsen8 Web Site Building & Maintenance 10 03-14-2006 05:41 AM
Vertical Alignment of DIVs CarlSeiler Web Site Building & Maintenance 17 12-14-2005 10:03 AM
CSS positioning dacoyle Web Design 2 11-14-2005 06:40 PM


All times are GMT -8. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.