Hi, I'm having problems with a tab content script/css in the way it displays in Firefox.
http://www.godirect.com.sg/etravel3/test/etravel.htm
It looks perfectly alright in IE, but in Firefox the big shaded tab on the far right just wouldn't line up. I have used 'html>body' for Firefox so the layout in IE remains unchanged. However, no matter how I try to extend the last tab out, anything over the padding margin set currently, the last tab gets swipe down below.
However, the code in Firefox works without a table enclosing it like this one:
http://www.godirect.com.sg/etravel3/Untitled-2.htm
I noticed that if you click on the last tab, there's an extended invisible margin to the right of it. That could be the reason why the tab pushes down when placed in a set table width. As I'm not allowed to redesign this, plus I'll probably burn in hell for using DIVs with tables. My question is, why does Firefox render the code like that, is there something I can do to fix this so it lines up properly like it does in IE? I'll appreciate any help I can get. Thank you very much.
(This tab content script was taken from Dynamic drive. It uses a JS file and CSS. http://www.godirect.com.sg/etravel3/test/tabcontent.js)
Below is the CSS that the tab panel uses (for Firefox)
.shadetabs1{
padding: 0px 0px -5px 0px;
margin-left: auto;
margin-right:auto;
margin-top: 0px;
margin-bottom: 0px;
font: bold 15px tahoma;
list-style-type: none;
text-align: left;/*set to left, center, or right to align the menu as desired*/
}
html>body .shadetabs1 li{
display: inline;
margin: 0;
margin: 5px 19px 5px -40px;
}
html>body .shadetabs1 li a{
text-decoration: none;
position: relative;
z-index: 1;
padding: 19px 62px 4px 20px;
margin-right: 5px;
border-bottom: 0px solid #778;
color: #2d2b2b;
width:206px;
background-image: url(images/tab_up.jpg);
background-repeat:repeat-y;
}
.shadetabs1 li a:visited{
color: #2d2b2b;
}
.shadetabs1 li a:hover{
text-decoration: underline;
color: #2d2b2b;
}
.shadetabs1 li a.selected{ /*selected main tab style */
position: relative;
width:1px;
top: 0px;
}
.shadetabs1 li a.selected{ /*selected main tab style */
background-image: url(images/tab_down.jpg);
border-bottom-color: white;
}
.shadetabs1 li a.selected:hover{ /*selected main tab style */
text-decoration: none;
}