DTP


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


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-09-2015, 11:39 AM   #1
dacoyle
Member
 
dacoyle's Avatar
 
Join Date: Aug 2005
Location: Arlington, VA (across the river from Washington, DC)
Posts: 560
Default CSS to center an image and constrain long captions

We already have classes that left or right align images, automatically wrap long captions, and lets the text flow around the image/caption. We'd like something similar for centered images, but the left/right styles use position: absolute, so we need a new approach.

We can't use HTML5 yet. So, with XHTML 1 Transitional, is there a way to use CSS to center an image, constrain long captions to the width of the image without setting a width manually, and left align the text under the image?

Thanks!

   
__________________
Dennis
dacoyle 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
Forum software test drive center Andrew B. Web Site Building & Maintenance 1 05-15-2012 03:22 PM
Image Organizer or Image Viewer wetzel Images 14 01-13-2009 11:22 PM
Trying to center a graphic and text jwoolf09 Web Site Building & Maintenance 25 02-27-2007 12:50 PM
New HP A1510N Media Center Computer dthomsen8 The Corner Pub 20 08-20-2006 07:41 AM
Extraneous Blank Line Before <CENTER> RJ Emery Web Site Building & Maintenance 7 05-31-2006 09:59 PM


All times are GMT -8. The time now is 01:26 AM.


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