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:11 PM   #2
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
I'm trying to place text to the left of an image and I want the text to be centered vertically in relation to the image. I couldn't figure out vertical-align so, for now, I did it the old fashioned way with a 2 cell table. But I really want to keep this site as tableless as possible.
The height of the image is known, and (I assume) so is the size of the text.

So set up a div, place the image and the text in it, and use padding-top to place the text. This is much easier if you actually use a stated size (pixels) for the type.

   
__________________
[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 02:02 AM.


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