ThemeShaper Forums » Thematic

[closed]

Menu widths different in FF and webkit browsers

(1 post)
  • Started 8 years ago by rwbennet
  • This topic is not resolved
  1. rwbennet
    Member

    I cannot for the life of me get my menu to look the same across browsers. The overall width is off by about 15px. Is there something I can change in order for the menu to always be 960px wide?

    .skip-link {
        display:none;
    }
    #access {
        height:35px;
        font-size:13px;
        overflow:visible;
        z-index:100;
    }
    /*** ESSENTIAL STYLES ***/
    .sf-menu, .sf-menu * {
    	margin:			0;
    	padding:		0;
    	list-style:		none;
    }
    .sf-menu {
    	line-height:	1.0;
    }
    .sf-menu ul {
    	position:		absolute;
    	top:			-999em;
    	width:			10em; /* left offset of submenus need to match (see below) */
    }
    .sf-menu ul li {
    	width:			100%;
    }
    .sf-menu li:hover {
    	visibility:		inherit; /* fixes IE7 'sticky bug' */
    }
    .sf-menu li {
    	float:			left;
    	position:		relative;
    }
    .sf-menu a {
    	display:		block;
    	position:		relative;
    }
    .sf-menu li:hover ul,
    .sf-menu li.sfHover ul {
    	left:			0;
    	top:			2.5em; /* match top ul list item height */
    	z-index:		99;
    }
    ul.sf-menu li:hover li ul,
    ul.sf-menu li.sfHover li ul {
    	top:			-999em;
    }
    ul.sf-menu li li:hover ul,
    ul.sf-menu li li.sfHover ul {
    	left:			10em; /* match ul width */
    	top:			0;
    }
    ul.sf-menu li li:hover li ul,
    ul.sf-menu li li.sfHover li ul {
    	top:			-999em;
    }
    ul.sf-menu li li li:hover ul,
    ul.sf-menu li li li.sfHover ul {
    	left:			10em; /* match ul width */
    	top:			0;
    }
    
    /*** THEMATIC SKIN ***/
    .sf-menu {
        border-right:1px solid #ccc;
    	float:left;
    }
    .ie6 .sf-menu {
    	margin-bottom: -1px;
    }
    .sf-menu a {
    	border-left:1px solid #ccc;
    	border-top:1px solid #ccc;
    	border-bottom:1px solid #ccc;
    	padding:9px 28px;
    	text-decoration:none;
    	text-transform:uppercase;
    	text-align:center;
    	letter-spacing: 2px;
    }
    .windows .sf-menu a {
    	font-size: 12px;
    	padding:9px 13px 10px;
    }
    .sf-menu .current_page_item a,
    .sf-menu .current_page_ancestor a,
    .sf-menu .current_page_parent a {
        border-bottom-color:#fff;
    }
    .sf-menu a, .sf-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
    	color:#666;
    }
    .sf-menu li {
    	background:#fff;
    }
    .sf-menu li li {
    	background:#fff;
    }
    .sf-menu li li li {
    	background:		#9AAEDB;
    }
    .sf-menu li:hover, .sf-menu li.sfHover,
    .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
        background:     #fafafa;
    	outline:		0;
        border-bottom-color:#ccc;
    }
    .sf-menu ul {
        border-right:1px solid #ccc;
        border-bottom:1px solid #ccc;
    }
    .sf-menu li:hover ul,
    .sf-menu li.sfHover ul {
    	top:32px; /* overriding essential styles */
    }
    .sf-menu ul ul {
        margin-top:0;
    }
    .sf-menu ul a {
        background:#fafafa;
    	border-bottom:none;
    }
    .sf-menu ul a:hover {
        color: #FF4B33;
    }
    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.