scrollable div
-
hi there i have a table-repeated region(php) inside a div. i need it to show 3 records and the other ones below-scrollable ofcourse i won't make framesets! how will i make it scrollable?? backround:scroll or backround-attachment:scroll won't work thanks
ninja coding
Set the div's style to "overflow:scroll;"
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Set the div's style to "overflow:scroll;"
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Thanks John it works,but how will i get rid of the horizontal scroll that is completely useless??
ninja coding
As far as I know, you can't (in this case, you gotta take the good with the bad). I use the same technique to constrain my web page content so that the header/menu and footer are always displayed. The content scrolls, but the page itself does not. :)
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Set the div's style to "overflow:scroll;"
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001Before anyone jumps in moaning bout bars they don't want, there's also an overflow-x / overflow-y....oops too late :)
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)
-
Before anyone jumps in moaning bout bars they don't want, there's also an overflow-x / overflow-y....oops too late :)
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)
-
thanks it works...but..there's always a but shows perfect on mozilla ,any solution for IE5-6?
ninja coding
My web site works in ie and mozilla and i don't recall doing anything special to make this work in both browsers.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
My web site works in ie and mozilla and i don't recall doing anything special to make this work in both browsers.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
thanks it works...but..there's always a but shows perfect on mozilla ,any solution for IE5-6?
ninja coding
Looking at your further questions, what exactly are you doing? Under ie6 / 7 in our app, we use the following:
Which works beautifully, providing only one scrollbar...are you sure your content is big enough to need a scroll? "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)
-
Looking at your further questions, what exactly are you doing? Under ie6 / 7 in our app, we use the following:
Which works beautifully, providing only one scrollbar...are you sure your content is big enough to need a scroll? "Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)
o yes it works after all...sorry but if u have the time please browse this demo from Ie and mozzila and see the difference on the right side of my content-scrollbar- http://boatguide.gr/view.php?cat=2 if i place another div in the right of my main table it goes right on top of the scrollbar in IE offcourse,in mozzilla everything is smooth as always Any css advise would be much appreciated thanks for your time
ninja coding
-
o yes it works after all...sorry but if u have the time please browse this demo from Ie and mozzila and see the difference on the right side of my content-scrollbar- http://boatguide.gr/view.php?cat=2 if i place another div in the right of my main table it goes right on top of the scrollbar in IE offcourse,in mozzilla everything is smooth as always Any css advise would be much appreciated thanks for your time
ninja coding
Ahhhhh - I see what you mean - looks like it's caused by the old IE / MOZ border problem (IE considers the border to be outside the area of an element, moz inside, so the widths ofter go a little screwy) - do a quick google for CSS Box Hacks and you should find something...
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman" (Lilly Allen / Kaiser Chiefs)