LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   html unwanted horizontal scrolling (https://www.linuxquestions.org/questions/programming-9/html-unwanted-horizontal-scrolling-609599/)

rblampain 12-28-2007 08:23 AM

html unwanted horizontal scrolling
 
I have an HTML document containing 2 words and a horizontal scroll bar, in a frameset environment. The frameset document specify scrolling="auto" for this particular window.

I have read somewhere that, even with an empty table for which the width is set at 100%, the actual width is always over 100% for some reason I have forgotten, and this creates the undesirable horizontal scroll bar.

At the time, I successfully followed the suggested solution but I can't trace it back.

Can anyone help?

Thank you for your help.

gnashley 12-28-2007 09:21 AM

Probably because of a few pixels of padding or border width. Try setting the width to less than 100%

rblampain 12-28-2007 09:54 PM

Thank you for the answer, I suspected something similar.

Can anyone suggest a suitable link that will tell exactly what is done by default, concerning border, padding etc so that I can create tables precisely as they should be?

Not defining the width works beautifully when there is enough text to automatically occupy the available space but it gives ugly results when the complete text is narrower than the available space, setting the width to less than 100% gives similar results although less ugly.


All times are GMT -5. The time now is 07:14 AM.