HighDots Forums  

Scrolling Behavior Question.

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


Discuss Scrolling Behavior Question. in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
pbd22
 
Posts: n/a

Default Re: Scrolling Behavior Question. - 09-27-2009 , 01:32 PM






Thanks for your reply and suggestion. Regarding the below:

Quote:
Put a span around the images, and set it to direction: ltr and
unicode-bidi: bidi-override. Leave the container as direction: rtl.
Is this what you mean:

#container
{
white-space:nowrap;
direction:rtl;
height:228px;
width:715px;
}

#container span
{
direction: ltr;
unicode-bidi: bidi-override;
}


If this is correct, I tried it and what happens is that the first
image
appears at the far right. Then, as new images are appended, they are
added to the left of the first and overflow to the left.

This is an improvement, but isn't what I am trying to do.

I want the page to load with the first image on the far left (not far
right).
Then, images are clicked and appended **to the right** (not to the
left).

When the right margin is reached, the next click overflows
the first image in the series to the left. The final image
in the series is always in view to the far right.

I appreciate your help. If my CSS isn't what you had in mind, would
you
mind showing me the correction?

Thanks again.

Reply With Quote
  #12  
Old   
Ben C
 
Posts: n/a

Default Re: Scrolling Behavior Question. - 09-27-2009 , 03:33 PM






On 2009-09-27, pbd22 <dushkin (AT) gmail (DOT) com> wrote:
Quote:
Thanks for your reply and suggestion. Regarding the below:

Put a span around the images, and set it to direction: ltr and
unicode-bidi: bidi-override. Leave the container as direction: rtl.

Is this what you mean:

#container
{
white-space:nowrap;
direction:rtl;
height:228px;
width:715px;
}

#container span
{
direction: ltr;
unicode-bidi: bidi-override;
}


If this is correct, I tried it and what happens is that the first
image
appears at the far right. Then, as new images are appended, they are
added to the left of the first and overflow to the left.
You are adding the images to the span, not to the container? You need
something like this:

<div>
<span>
<img>
<img>
<img>
<img>
...
</span>
</div>

Quote:
This is an improvement, but isn't what I am trying to do.

I want the page to load with the first image on the far left (not far
right).
Then, images are clicked and appended **to the right** (not to the
left).
That should be do-able with text-align: left on the container. I'll try
it just to be sure.

Yes, seems to work. Here is the example:
http://www.tidraso.co.uk/misc/imgContainer/

Is this what you want (only tested in Firefox, should work in any
conforming browser that supports bidi).

Quote:
When the right margin is reached, the next click overflows
the first image in the series to the left. The final image
in the series is always in view to the far right.

I appreciate your help. If my CSS isn't what you had in mind, would
you
mind showing me the correction?

Thanks again.

Reply With Quote
  #13  
Old   
pbd22
 
Posts: n/a

Default Re: Scrolling Behavior Question. - 09-27-2009 , 05:42 PM



AH! Thank you so much!

For some reason it works with <div><span></span></div> but not
<div><div></div></div>.

This one has been escaping me for a few days now. Seriously
appreciated.

Cheers.

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 - 2009, Jelsoft Enterprises Ltd.