![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi. I am not sure how to achieve a certain effect in CSS. I have the following HTML: div id="container" name="container" * * <div id="scroll" name="scroll"></div *</div [...] What is currently happening is that each image starts at the left and, once the images exceed the 700px mark, the next in the series creates a new row (I need it to scroll back). Suggestions appreciated. Thanks. * * * * #container * * * * { * * * * * * width: 715px; * * * * * * height: 228px; * * * * * * overflow: auto; * * * * * * padding: 3px 0 3px 0; * * * * } * * * * #scroll * * * * { * * * * * * width: 700px; * * * * * * height: 210px; * * * * * * overflow: auto; * * * * * * display:block; * * * * } |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
How do I get the series to start at the left and then, when the number of images exceeds the width, the left-most images is pushed left (and out of sight) and the right-most image is always at the very end (and never out of sight). Thanks again. |
#5
| |||
| |||
|
|
On Sep 24, 12:35*pm, pbd22 <dush... (AT) gmail (DOT) com> wrote: ... How do I get the series to start at the left and then, when the number of images exceeds the width, the left-most images is pushed left (and out of sight) and the right-most image is always at the very end (and never out of sight). Thanks again. I'm not seeing an html/css solution, but perhaps I'm not thinking hard enough. Perhaps javascript or flash will do it, but those are out of my expertise and off-topic for the ng. Nick -- Nick Theodorakis nick_theodora... (AT) hotmail (DOT) com contact form:http://theodorakis.net/contact.html |
#6
| |||
| |||
|
|
On Sep 24, 12:35*pm, pbd22 <dush... (AT) gmail (DOT) com> wrote: ... How do I get the series to start at the left and then, when the number of images exceeds the width, the left-most images is pushed left (and out of sight) and the right-most image is always at the very end (and never out of sight). Thanks again. I'm not seeing an html/css solution, but perhaps I'm not thinking hard enough. Perhaps javascript or flash will do it, but those are out of my expertise and off-topic for the ng. Nick -- Nick Theodorakis nick_theodora... (AT) hotmail (DOT) com contact form:http://theodorakis.net/contact.html |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
OK, I got *it* to work in IE, but not Firefox: |
#9
| |||
| |||
|
|
Thanks Nick. That fixed my "new row" problem. The outstanding item is the behavior I (crudely) described here: all images in fixed length div: [ [1] [2] [3] ] another images is added, pushing everything to the left: [ [2] [3] [4] ] -------------- and so on: [ [3] [4] [5] ] -------------- How do I get the series to start at the left and then, when the number of images exceeds the width, the left-most images is pushed left (and out of sight) and the right-most image is always at the very end (and never out of sight). |
#10
| |||
| |||
|
|
On Sep 24, 11:48*am, Nick Theodorakis <nick.theodora... (AT) gmail (DOT) com wrote: On Sep 24, 12:35*pm, pbd22 <dush... (AT) gmail (DOT) com> wrote: ... How do I get the series to start at the left and then, when the number of images exceeds the width, the left-most images is pushed left (and out of sight) and the right-most image is always at the very end (and never out of sight). Thanks again. I'm not seeing an html/css solution, but perhaps I'm not thinking hard enough. Perhaps javascript or flash will do it, but those are out of my expertise and off-topic for the ng. Nick -- Nick Theodorakis nick_theodora... (AT) hotmail (DOT) com contact form:http://theodorakis.net/contact.html Thanks again. I sort of have the right behavior, but flipped. I added the container back as I think I need it but maybe you have a better way? #container { width: 715px; height: 228px; overflow: hidden; position:relative; / * text-align:left; */ } #scroll { height: 228px; white-space: nowrap; direction: rtl; /* text-align:left; */ } This does what I want - starts at the left of the box. Adds images until the series has filled the width. Then, when the next image is added, the left- most is pushed out of view and the right-most is positioned at the end of the series, in view. The problem is, it is backwards. I know that this is because of RTL. I was hoping I could flip the effect of RTL with text-align but this doesn't seem to do much / anything. |
![]() |
| Thread Tools | |
| Display Modes | |
| |