?
Solved

Dreamweaver Spry Tabs and CSS issues with IE 6

Posted on 2008-10-23
3
Medium Priority
?
643 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
yessirnosir earned 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

719 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