PDA

View Full Version : Ajax Tabs Content script doesn't work on Firefox for me.



binaryman209
08-10-2007, 09:23 AM
1) Script Title: Ajax Tabs Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem: I set the width to 100% for .contentstyle. It shows up perfectly on IE7 but when I view it under Firefox the right border overlaps the limit. Please help.

ddadmin
08-11-2007, 07:10 AM
Actually, at a glance, this looks like the box model bug (http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug) of IE (not Firefox). Does your DIV containing the loaded pages (<div class="contentstyle" id="ajaxcontentarea">) contain any CSS padding or margins? If so, in non buggy browsers such as Firefox, those values are added on top of the DIV's width, creating a width that's larger than 100&#37; in your case.

You can try either removing the width: 100% declaration all together, or if that doesn't work, set it to something smaller than 100%, like 98%.