Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,375 Programmers. There are 1,435 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

How do I make my scrollbar display correctly in Firefox?

 
Reply to this topicStart new topic

How do I make my scrollbar display correctly in Firefox?

staci
post 1 May, 2008 - 09:18 AM
Post #1


New D.I.C Head

*
Joined: 1 May, 2008
Posts: 2



Hi. I have a website that has a fixed page size and displays perfectly in IE; however, the right hand side is off in Firefox. Any overflow text utilizes a scrollbar - the scroll bar is perfect in IE but is the wrong color and the placement is off in Firefox. It actually looks like the body text table has moved over a few pixels because the background images (there's a gray border on that side) are off also.

I know Firefox doesn't support some scroll bar options...but I'm really not even that concerned with the color at this point. I just don't like that the pages look off because the scrollbar is outside the boundary and there are gaps in the border line.

Any advice on how to have the scrollbar/border aligned where they should be?

You can use this page as an example to check it out:

http://www.ardl.com/Public/Products/polydata.html

The coding used for that body section is as follows:

CODE

<table width="519" border="0" cellspacing="0" cellpadding="0" style="overflow:visible; height:350px; padding-right: 20px; width:519px">
<tr>
<td class="BodyText" width="549" height="39" valign="top" style="padding-left:6; padding-top: 10px">
<div id="scroll" class="BodyText" style="height:330px; padding-right: 20px; width:511px">
<!-- TemplateBeginEditable name="Body Text" -->
Content for body text
<!-- TemplateEndEditable -->
</div>
</td>
</tr>
</table>


Thank you in advace for you help!

This post has been edited by staci: 1 May, 2008 - 11:25 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


pertheusual
post 1 May, 2008 - 08:42 PM
Post #2


D.I.C Head

**
Joined: 26 Jan, 2008
Posts: 212

Thats a fun combo of CSS and old HTML+Tables you have there.

Removing the padding-right in the table and scroll div made it look at least half decent in Firefox for me with a slight height problem. I have no idea how that change would affect it in IE though. I know IE gets confused about padding sometimes.

Per
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

staci
post 2 May, 2008 - 06:07 AM
Post #3


New D.I.C Head

*
Joined: 1 May, 2008
Posts: 2

QUOTE(pertheusual @ 1 May, 2008 - 08:42 PM) *

Thats a fun combo of CSS and old HTML+Tables you have there.

Removing the padding-right in the table and scroll div made it look at least half decent in Firefox for me with a slight height problem. I have no idea how that change would affect it in IE though. I know IE gets confused about padding sometimes.

Per



If I take out the div tag it completely removes the scroll bar in IE and leaves big gaps on the top and bottom of the left side. I'm using Dreamweaver (I'm more of a graphic designer than a web developer...I'm pretty much self taught, if you can even call it that). I really don't know how to create anything without using tables.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

pertheusual
post 2 May, 2008 - 10:41 AM
Post #4


D.I.C Head

**
Joined: 26 Jan, 2008
Posts: 212

Sorry, my wording was ambiguous.

Remove the "padding-right" property from the style tags of both the table and the "scroll" div.

Per
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 02:53AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month