Solved

Dreamweaver Spry Tabs and CSS issues with IE 6

Posted on 2008-10-23
3
624 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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 …
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.

828 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