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, 04:49 PM   #4
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default

Quote:
Originally Posted by dacoyle View Post
The text size is 1em. My usual default. I can't visualize how using padding-top can make the text beside the image be in the middle rather than at the bottom, the default with no CSS. I could see wrapping the text in a span and using padding bottom, maybe... but it seems like cheating. Isn't there a way to use vertical-align?
The beauty of CSS is that you can change the type specs within a DIV.

Centering is, or ought to be, a visual (not mechanical or mathematical) issue. I find that applying a bit of padding can work very well. You want more space at the bottom than at the top, anyway; and line-height also lets you adjust the distance between the lines, if they flow beyond the available space.

But all of this is a trade-off. You have no idea what viewers are seeing: they can change font, type size, and width of the viewing window. But the image is one size (unless you allow that also to flex). So whatever you do will work sometimes, for some viewers.

Right?

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel 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 09:35 AM.


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