![]() Preserved Topic: Can I detect horizontal scrollbars? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Lebanon |
![]() Is there is a way to check if horizontal are present then I resize my window so all the content appear w/o the need to scroll horizontally. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() A) no. |
Paranoid (IV) Inmate From: Lebanon |
![]() Actually I'm resizing sort of a debug window and not any site. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Well, there is a way, with JavaScript you can find the width of an element containing text (in good browsers, at least). However, you should upload it and give us a link to it, because there may be a better way to solve the problem that we could point out, or if there isn't, we'll almost certainly need the page to be able to show you how to find the width of the text. |
Paranoid (IV) Inmate From: Lebanon |
![]() that's the complete testing code, just copy and paste it... code: <html>
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() OK, well, for one thing, I'm pretty sure you're not allowed to use spaces in the "location=0, width=500, height=200, status=1, scrollbars=1" thing. Maybe it's working, but I don't think it's supposed to be allowed to have spaces. |
Paranoid (IV) Inmate From: Lebanon |
![]() >do you *need* to have long words without spaces? |