• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How can I get rid of the horizontal scroll bar, when using 800x600

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranch mates,
I am using a table(s) of fixed width 770 pixels in the body as follows:
<html>
<body bgcolor="ffffff" marginheight="0" marginwidth="0" topmargin="0" rightmargin="0" leftmargin="0">

<table border="0" cellspacing="0" cellpadding="0" width="770">
<!-- CONTENT -->
</table>
<table border="0" cellspacing="0" cellpadding="0" width="770">
<!-- CONTENT -->
</table>
<table border="0" cellspacing="0" cellpadding="0" width="770">
<!-- CONTENT -->
</table>
</body>
</html>

When viewing with 1024 X 768 there is no horizontal bar. But with 800 X 600 resolution it shows up. I have the content in a fixed width table of 770 pixels. It should fit in 800x600 resolution with no horizontal scroll bar.
May I know the reason why? Also please anybody tell me how can I get rid of this horizontal scroll bar using 800x600 resolution by keeping the table width as 770px.
Thanks in advance.
Nagesh.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<body style="overflow-x:hidden">
 
Nagesh Rachakonda
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eric Pascarello:
<body style="overflow-x:hidden">


Thanks for your valuable reply.
With style="overflow-x:hidden", I lost the horizontal scrollbar completely. I need the scroll bar when the browser width shrink to less than 770px. How can I do this?
-Nagesh
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easy Solution..reduce your table by 2-5 px.
reply
    Bookmark Topic Watch Topic
  • New Topic