Solved

Dreamweaver Spry Tabs and CSS issues with IE 6

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

SendBlaster Pro 4 - Bulk Email Sending Software

SendBlaster 4 Pro - Best Bulk Emailing Sending Software
Automatic Subscribe / Unsubscribe Processing
Great for Newsletters & Mass Mailings
Optional HTML & Text Composition
Integration with Google Features
Built in Spam Score Checking
Free Professional Templates - Feature Packed!

Question has a verified solution.

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

Suggested Solutions

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…
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 embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

751 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