Solved

Dreamweaver Spry Tabs and CSS issues with IE 6

Posted on 2008-10-23
3
589 Views
Last Modified: 2013-12-08
I am working on a prototype site using Dreamweaver Spry technologies, specifically tabs and accordions. When I added the code for the tabs, all is working well for FF and IE 7, but in IE 6 it pushes the content down the page about 600pxls. I believe this is a CSS issue, but having a tough time narrowing it down.

URL for site example: http://braggpicerne.com/new/

Any assistance would be greatly appreciated.

0
Comment
Question by:tjputerboy
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
yessirnosir earned 50 total points
ID: 22791746
on your tabs.css stylesheet, try decreasing the .TabbedPanels width from 416px to 412px.  It worked in IE for me.  If you do the math, you have 752px total width, of which 320 px is reserved for the right panel, leaving 432 px, but I think you have 10 px margin or margin on each side so you have only 412px available.
0
 
LVL 14

Expert Comment

by:yessirnosir
ID: 22792853
I was looking at this some more and I see it is more complicated than my first response.  When I sharpened my pencil on the margins and padding I found I was wrong the first time: the margin appears to be only 4 px on each side, rather than the 10px I said.  So you should have 416px + 4 + 4 = 424px, which should fit just fine in 432px (if I haven't missed any pesky margins or padding).  So that twigged the realization that the reason this box isn't fitting appears to be the IE "doubled margin bug", where the combination of a floated div with a margin on the same side as the float, causes the margin to double in IE6.  

I applied the solution documented here: http://www.positioniseverything.net/explorer/floatIndent.html
It seemed to work.  I surrounded those TabbedPanels divs with a new div, <div style="float:left">, then I changed the style as shown below, removing the float, and tweaking the margins.  You can see I ended up setting the left and right margins assymetrically at 10px and 0px to get the box to look right on my page.  That suggests to me that maybe I'm still missing something, but hopefully it will get you closer to what you need.
.TabbedPanels {

	margin: 4px 0px 4px 10px;

	padding: 0px;

	float: none;

	clear: none;

	/*width: 416px;*/ /* IE Hack to force proper layout when preceded by a paragraph. (hasLayout Bug)*/

	width: 416px;

}

Open in new window

0
 

Author Comment

by:tjputerboy
ID: 22796348
The first solution worked for me. I followed what you said and set it to 412px for the width, and then I changed the tabs to 97px (they were 98px - 1px for each tab to achieve the overall 4px loss) and checked it in IE 6 which now renders correctly.

Also thank you for your second post and the information in it made things much clearer.

It now looks correctly in IE6 & 7, and FF.

Thank you so much! :)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now