Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2006, 01:45 AM
windandwaves
Guest
 
Posts: n/a
Default right-align as caption to image

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?

TIA
[color=blue]
> Nicolaas[/color]


  #2  
Old March 8th, 2006, 06:25 AM
Els
Guest
 
Posts: n/a
Default Re: right-align as caption to image

windandwaves wrote:
[color=blue]
> 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?[/color]

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
  #3  
Old March 8th, 2006, 11:15 AM
windandwaves
Guest
 
Posts: n/a
Default Re: right-align as caption to image

Els wrote:[color=blue]
> windandwaves wrote:
>[color=green]
>> 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?[/color]
>
> 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.[/color]

hmmm, yes, that is what I did. I was keen to know if there was an
alternative.

Cheers
[color=blue]
> Nicolaas[/color]


  #4  
Old March 10th, 2006, 07:25 AM
Jasen Betts
Guest
 
Posts: n/a
Default Re: right-align as caption to image

On 2006-03-08, windandwaves <winandwaves@coldmail.com> wrote:[color=blue]
> 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.[/color]

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

Bye.
Jasen
  #5  
Old March 16th, 2006, 07:25 PM
windandwaves
Guest
 
Posts: n/a
Default Re: right-align as caption to image

Jasen Betts wrote:[color=blue]
> On 2006-03-08, windandwaves <winandwaves@coldmail.com> wrote:[color=green]
>> Hi Folk
>>
>> I have a pop-up window with an image and a title:
>>
>> title
>> ______[color=darkred]
>>> |
>>> pic |
>>> |[/color]
>> _____
>>
>> the content is created dynamically. That is, there are 100s of
>> images and so I don't know the size of the image.[/color]
>
> if the content is dynamic _you_ don't need to know the size. it can be
> determined programatically.
>
> Bye.
> Jasen[/color]


Yes, I did.


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles