Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll Bars

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i have a table that is 690px wide. it appears in a frame that is 720px wide. in internet explorer, the frame has a slight scroll bar at the bottom - even though it doesn't need one. I trid making the table 20px thinner, but the scroll bar still appeared. is there a way of getting rid of this scroll bar without loosing my vertical one?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
What you could do is add the

body { overflow-x: hidden; }

in the frame where this table appears. It will get rid of horizontal scrollbar. It is not standard css tag and only IE supports it but since this is an IE problem it is all the same. Note however, that people who have smaller screens (and using IE) won't be able to see the entire page since they'll have no horizontal scrollbar.
 
i don't understand where to add this code.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
In a separate CSS file which the frame in question uses or in the <head> </head> section of the frame like so:
Code:
<style type=&quot;text/css&quot;>
    body { overflow-x: hidden; }
</style>
Hope it helps.
 
right. i've done that. it hasn't helped. i still have the scroll bar.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
It worked for me in the IE, but I did it without the frames. Which IE are you using? Could you provide a link to the site so I could check the entire code?
 
i'm using ie 6.0

i can't show you the entire site, i haven't got the code up yet.

here's a code snippet:

<head>
<title>Untitled Document</title>
<script language=&quot;javascript&quot;>
var mainState=&quot;home&quot;;
top.navi.setState(mainState);
</script>

<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<link href=&quot;../universal/css/blue.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>

<style type=&quot;text/css&quot;>
body { overflow-x: hidden; }
</style>
</head>


nothing in blue.css specifies anything to do with scroll bars. it's just text, border and background stuff.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top