Jump to content


Photo

Tabbed navigation IE vs Firefox


  • Please log in to reply
No replies to this topic

#1 lackan

lackan
  • Members
  • Pip
  • Newbie
  • 5 posts
  • LocationKista, Sweden

Posted 01 May 2006 - 09:21 AM

Hello!


I'm playing around with a new site and I'm trying to create a good looking tabbed navigation. It looks OK in IE but not in FF where the tabs don't get the correct width.

Does anyone have any idea how to make this work? Is there something wrong with my code - have I missed something obvious?

Link
[a href=\"http://www.starmaker.se/new/contact.php\" target=\"_blank\"]http://www.starmaker.se/new/contact.php [/a]


Pieces of the code

1)Main code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>StarMaker Software</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Starmaker Software är ett företag som utvecklar produkter för kunder. I vår portföljd återfinns bl.a. verktyg för träningsredovisning, bokföring, utbildning, ekonomi mm. Välkommen in att besöka oss på starmaker.se">
<meta name="keywords" content="StarMaker, starmaker software, träningsdagbok, dagbok träning, dagbok, träningsredovisning, redovisning träning, hemekonomi, csof, david holmberg">
<meta name="robots" content="noindex">

<link rel="stylesheet" href="stilmall.css" type="text/css" media="screen,projection">
</head>

<body>

<div id="header">
<h1>StarMaker Software</h1>
<h2>-Solutions created for you</h2>

    <div id="navigation">
    <a href="home.php" class="navtabs">Startsida</a>
    <a href="products.php" class="navtabs">Produkter</a>
    <a href="store.php" class="navtabs">Butik</a>
    <a href="support.php" class="navtabs">Support</a>
    <a href="contact.php" class="activenavtab">Kontakt</a>
    </div>

    <div class="roundtop">
    <div class="r9"></div>
    <div class="r10"></div>
    <div class="r11"></div>
    <div class="r12"></div>
    </div>

</div>


2) CSS


body {
    font:75% Verdana,Arial, times new roman;
    line-height:1.4em;
    text-align:center;
    color:#303030;
    background: #ffffff url(images/bodybg.gif) repeat-x;
}

/********* Header ***********/

#header{
    width:760px;
    background:transparent;
    padding: 0px;
    color:#a0a0a0;
    margin: 140px auto 0px auto;
    text-align:left;
}

.splitheaderleft{float:left; width:35%;}
.splitheaderright{float:right; width:60%; margin-top:-26px;}

#header h1{
    padding:-5px 0px 0px 10px;
    font-size:2.2em;
    background-color:inherit;
    color:#ffffff;
    letter-spacing:-1px;
    font-weight:normal;
}

#header h2{
    margin:10px 0 0 20px;
    font-size:1.4em;
    background-color:inherit;
    color:#ffffff;
    letter-spacing:-1px;
    font-weight:normal;
}

/********NAVIGERING*********/

#navigation{
    width: 100%;
    text-align: right;
    margin-right: 10px;
}

a.navtabs{
    background:#efefef url(images/corner.gif) top right no-repeat;
    height: 28px;
    width: 90px;
    padding:6px 8px 4px 8px;
    margin:0 0 0px 0;
    text-decoration:none;
    letter-spacing:-1px;
    text-align: center;
    border-bottom: 1px solid #223447;
}

a.navtabs:hover{
    background:#ffffff url(images/corner2.gif) top right no-repeat;
    height: 32px;
    width: 90px;
    text-decoration:none;
}

a.activenavtab{
    background:#ffffff url(images/corner2.gif) top right no-repeat;
    width: 90px;
    height: 32px;
    padding:6px 8px 4px 8px;
    margin:0 0 0px 0;
    text-decoration:none;
    text-align: center;
    letter-spacing:-1px;
}

a.activenavtabs:hover{
    background:#ffffff url(images/corner2.gif) top right no-repeat;
    height: 32px;
    width: 90px;
    text-decoration:none;
}

/******************* Rundade hörn ******************/
.roundtop {background: #223447;}
.r1{margin: 0 5px 0 0; height: 1px; overflow: hidden; background: #66ccff;}
.r2{margin: 0 3px 0 0; height: 1px; overflow: hidden; background: #66ccff;}
.r3{margin: 0 2px 0 0; height: 1px; overflow: hidden; background: #66ccff;}
.r4{margin: 0 1px 0 0; height: 2px; overflow: hidden; background: #66ccff;}

.roundbottom {background: #ffcc99;}
.r5{margin: 0 5px; height: 1px; overflow: hidden; background: #FA9035;}
.r6{margin: 0 3px; height: 1px; overflow: hidden; background: #FA9035;}
.r7{margin: 0 2px; height: 1px; overflow: hidden; background: #FA9035;}
.r8{margin: 0 1px; height: 2px; overflow: hidden; background: #FA9035;}

.r9{margin: 0 5px; height: 1px; overflow: hidden; background: #ffffff;}
.r10{margin: 0 3px; height: 1px; overflow: hidden; background: #Ffffff;}
.r11{margin: 0 2px; height: 1px; overflow: hidden; background: #Ffffff;}
.r12{margin: 0 1px; height: 2px; overflow: hidden; background: #Ffffff;}






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users