HighDots Forums  

right-align as caption to image

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss right-align as caption to image in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
windandwaves
 
Posts: n/a

Default right-align as caption to image - 03-07-2006 , 07:36 PM






Hi Folk

I have a pop-up window with an image and a title:

title
______
Quote:
|
pic |
|
_____

the content is created dynamically. That is, there are 100s of images and so
I don't know the size of the image. Is there a way to right-align the title
of the pic above the pic so that the e in title sits on the right-hand
corner of the pic?

TIA

Quote:
Nicolaas



Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: right-align as caption to image - 03-08-2006 , 12:15 AM






windandwaves wrote:

Quote:
Hi Folk

I have a pop-up window with an image and a title:

title
______
| |
| pic |
| |
_____

the content is created dynamically. That is, there are 100s of images and so
I don't know the size of the image. Is there a way to right-align the title
of the pic above the pic so that the e in title sits on the right-hand
corner of the pic?
I'd imagine that if you are creating the content dynamically, you
could just as easily add the image's width dimension to the style for
a surrounding div. And then it's just a matter of having
text-align:right; as a style for that same div.



--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Electric Boys - Captain of my soul


Reply With Quote
  #3  
Old   
windandwaves
 
Posts: n/a

Default Re: right-align as caption to image - 03-08-2006 , 05:00 AM



Els wrote:
Quote:
windandwaves wrote:

Hi Folk

I have a pop-up window with an image and a title:

title
______
| |
| pic |
| |
_____

the content is created dynamically. That is, there are 100s of
images and so I don't know the size of the image. Is there a way to
right-align the title of the pic above the pic so that the e in
title sits on the right-hand corner of the pic?

I'd imagine that if you are creating the content dynamically, you
could just as easily add the image's width dimension to the style for
a surrounding div. And then it's just a matter of having
text-align:right; as a style for that same div.
hmmm, yes, that is what I did. I was keen to know if there was an
alternative.

Cheers

Quote:
Nicolaas



Reply With Quote
  #4  
Old   
Jasen Betts
 
Posts: n/a

Default Re: right-align as caption to image - 03-09-2006 , 11:52 PM



On 2006-03-08, windandwaves <winandwaves (AT) coldmail (DOT) com> wrote:
Quote:
Hi Folk

I have a pop-up window with an image and a title:

title
______
| |
| pic |
| |
_____

the content is created dynamically. That is, there are 100s of images and so
I don't know the size of the image.
if the content is dynamic _you_ don't need to know the size. it can be
determined programatically.

Bye.
Jasen


Reply With Quote
  #5  
Old   
windandwaves
 
Posts: n/a

Default Re: right-align as caption to image - 03-16-2006 , 01:17 PM



Jasen Betts wrote:
Quote:
On 2006-03-08, windandwaves <winandwaves (AT) coldmail (DOT) com> wrote:
Hi Folk

I have a pop-up window with an image and a title:

title
______
|
pic |
|
_____

the content is created dynamically. That is, there are 100s of
images and so I don't know the size of the image.

if the content is dynamic _you_ don't need to know the size. it can be
determined programatically.

Bye.
Jasen

Yes, I did.




Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.