replace <html> with:
newer browsers should allow for auto width based on %
Main Topics
Browse All TopicsHi. I am using a javascript text scroller which in turn scrolls text within a DIV element. The DIV is specified using CSS:
#pscroller1
{
width: 95%;
height: 15%;
padding: 5px;
overflow: visible;
border: 0px solid #000000;
}
My problem is that when the window is made smaller/bigger, the div doesn't change its' size until the page is refreshed. Anyone know how to do this automatically?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
@Eternal_Student:
Yes, I mean the browser window.
See www.csgshow.org for what I'm talking about. The scroller is in the upper-left corner of the page beneath the main links.
If it is the scrolling link area... then your ID# is wrapper or wrapper2 NOT #pscroller :)
Style.css
I added #wrapper
#wrapper
{
width: 95%;
height: 200px;
padding: 5px;
overflow: visible;
border: 0px solid #000000;
}
you could also revert to %
#wrapper
{
width: 95%;
height: 15%;
padding: 5px;
overflow: visible;
border: 0px solid #000000;
}
It seems to me that the problem is the scroller script itself. This line sets the width of the elements to a fixed width when the script initializes.
this.visiblediv.style.widt
Try adding the following code block after this line:
new pausescroller(pausecontent
Business Accounts
Answer for Membership
by: Eternal_StudentPosted on 2009-07-10 at 02:18:29ID: 24821461
You mean the browser window right?
If you have set the width as a percentage then it should re-size automatically. Do you have something I could look at to see this problem in more detail?