Solved

Dreamweaver Spry Tabs and CSS issues with IE 6

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Slider Moving to right hand side CSS? 2 23
A simple Float not working. 5 19
Changing Color of Page Section 4 21
styling bootstrap grid system with CSS 2 6
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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 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…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

777 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