PDA

View Full Version : scrolling div parameters?


DagGz
February 19th, 2005, 08:33 AM
hi, after your advice in a previous thread, i have decided to use scrolling div's as opposed to iframes. this has totally fixed the predicament i was in before which im really pleased about.

i now have 1 other problem though. after applying the scrolling div to my page, it has both a vertical scroll bar and a horizontal (inactive) scrollbar. i want to do away with the inactive scroll bar as it ruins the look of the page. there is no need and wont ever be a need to have a horizontal bar so is there a way i can get rid of this?

also is there a way of using the div as a target, as in, when a link is clicked, the content displays within the scrolling div.

http://homepage.ntlworld.com/karen.doughty5

thanks in advance

degsy
February 19th, 2005, 01:52 PM
Depends if you want your page to be HTML or XHTML.
Also depends on your support for browsers.

IE has the option to to use overflow-x and overflow-y
Mozilla has it's own propriety code that can be used
http://www.blooberry.com/indexdot/css/properties/position/overflow.htm

you could always use a detection script to decide which CSS to use.

DagGz
February 19th, 2005, 02:05 PM
obviously i want it to be compatible with as many platforms as possible. all i want to do is do away with the horizontal scrollbar in the scrolling div, thats my main gripe at the moment.

it would be nice if i could use the scrolling div in the same way as a frame is used though. if i cant do that then that doesnt really matter as there are other ways of acomplishing what i want.

thanks

stu

degsy
February 19th, 2005, 02:28 PM
Using overflow:auto may get you the right results

DagGz
February 19th, 2005, 03:27 PM
ur the don m8!!! thx for all ur help, worked a treat.

just a quick question, what do u think of the overall layout/look/functionality of the site so far and any tips to improve any of the mentioned?

thanks again m8

stu

degsy
February 19th, 2005, 04:28 PM
seems ok to me.
The blue is a bit funny to my eyes and you may want to tweak the link text colour.