www.webdeveloper.com
Results 1 to 4 of 4

Thread: Hyperlink issues in firefox ( I think it may be a CSS issue)

  1. #1
    Join Date
    Mar 2006
    Posts
    11

    Hyperlink issues in firefox ( I think it may be a CSS issue)

    So,

    My global navigation works just peachy in IE, but when I open it in FF or NN the global navigation links almost quit working entirely. Meaning, you have to move the mouse over the top of the buttons in order to click the navigation at the top. You can view the problem at my web site www.dynamicgeeks.com (also if you have any style suggestions, please feel free to email me. thanks)

    Code:
    /***********************************************/
    /* emx_nav_left.css                            */
    /* Use with template Halo_leftNav.html         */
    /***********************************************/
    
    /***********************************************/
    /* HTML tag styles                             */
    /***********************************************/
    body{
    	font-family: Arial,sans-serif;
    	color: #333333;
    	line-height: 1.166;	
    	margin: 0px;
    	padding: 0px;
    	background: #cccccc url("bg_grad.jpg") fixed;
    }
    
    /******* hyperlink and anchor tag styles *******/
    
    a:link, a:visited{
    	color: #005FA9;
    	text-decoration: none;
    }
    
    a:hover{
    	text-decoration: underline;
    }
    
    /************** header tag styles **************/
    
    h1{
     font: bold 120% Arial,sans-serif;
     color: #334d55;
     margin: 0px;
     padding: 0px;
    }
    
    h2{
     font: bold 114% Arial,sans-serif;
     color: #006699;
     margin: 0px;
     padding: 0px;
    }
    
    h3{
    	font: bold 100% Arial,sans-serif;
    	color: #334d55;
    	margin: 0px;
    	padding: 0px;
    	text-align: center;
    }
    
    h4{
     font: 100% Arial,sans-serif;
     color: #333333;
     margin: 0px;
     padding: 0px;
    }
    
    h5{
     font: 100% Arial,sans-serif;
     color: #334d55;
     margin: 0px;
     padding: 0px;
    }
    
    
    /*************** list tag styles ***************/
    
    ul{
     list-style-type: square;
    }
    
    ul ul{
     list-style-type: disc;
    }
    
    ul ul ul{
     list-style-type: none;
    }
    
    /********* form and related tag styles *********/
    
    form {
    	margin: 0;
    	padding: 0;
    }
    
    label{
     font: bold 1em Arial,sans-serif;
     color: #334d55;
    }
    				
    input{
    font-family: Arial,sans-serif;
    }
    
    /***********************************************/
    /* Layout Divs                                 */
    /***********************************************/
    #pagecell1{
    	position:absolute;
    	top: 112px;
    	left: 2%;
    	right: 2%;
    	width:95.6%;
    	background-color: #ffffff;
    }
    
    #tl {
    	position:absolute;
    	top: -1px;
    	left: -1px;
    	margin: 0px;
    	padding: 0px;
    	z-index: 100;
    }
    
    #tr {
    	position:absolute;
    	top: -1px;
    	right: -1px;
    	margin: 0px;
    	padding: 0px;
    	z-index: 100;
    }
    
    #masthead{
    	position: absolute;
    	top: 0px;
    	left: 2%;
    	right: 2%;
    	width:95.6%;
    	
    }
    
    #pageNav{
    	float: left;
    	width:178px;
    	padding: 0px;
    	background-color: #F5f7f7;
    	border-right: 1px solid #cccccc;
    	border-bottom: 1px solid #cccccc;
    	font: small Verdana,sans-serif;
    }
    
    #content{
    	padding: 0px 10px 0px 0px;
    	margin:0px 100px 0px 178px;
    	border-left: 1px solid #ccd2d2;
    }
    
    #movie_text{
     font: 70% Arial,sans-serif;
     color: BLACK;
     }
     
     #sfw{
     font: 80% bold Arial,sans-serif;
     color: RED;
     }
    
    /***********************************************/
    /* Component Divs                              */
    /***********************************************/
    #siteName{
    	margin: 0px;
    	padding: 16px 0px 8px 0px;
    	color: #ffffff;
    	font-weight: normal;
    }
    
    #pageNum{
    	font: 175% Arial, Helvetica, sans-serif;
    	color: #21536A;
    	font-weight: normal;
    }
    
    /************** utility styles *****************/
    
    #utility{
    	font: 75% Verdana,sans-serif;
    	position: absolute;
    	top: 16px;
    	right: 0px;
    	color: #919999;
    	left: 772px;
    }
    
    #utility a{
    	color: #ffffff;
    }
    
    #utility a:hover{
    	text-decoration: underline;
    }
    
    /************** pageName styles ****************/
    
    #pageName{
    	padding: 0px 0px 14px 10px;
    	margin: 0px;
    	border-bottom:1px solid #ccd2d2;
    }
    
    #pageName h2{
    	font: bold 175% Arial,sans-serif;
    	color: #000000;
    	margin:0px;
    	padding: 0px;
    }
    
    #pageName img{
    	position: absolute;
    	top: 0px;
    	right: 6px;
    	padding: 0px;
    	margin: 0px;
    }
    
    /************* globalNav styles ****************/
    
    #globalNav{
    position: relative;
    width: 100%;
    min-width: 640px;
    height: 32px;
    color: #cccccc;
    padding: 0px;
    margin: 0px;
    background-image:  url("glbnav_background.gif");
    }
    
    #globalNav img{
    	margin-bottom: -4px;
     
    }
    
    #gnl {
    	position: absolute;
    	top: 0px;
    	left:1px;
    	width: 3px;
    }
    
    #gnr {
    	position: absolute;
    	top: 0px;
    	right:0px;
    }
    
    #globalLink{
    	position: absolute;
    	top: 6px;
    	height: 22px;
    	min-width: 640px;
    	padding: 0px;
    	margin: 0px;
    	left: 10px;
    	z-index: 100;
    	width: 686px;
    }
    
    
    a.glink, a.glink:visited{
      	font-size: small;
      	color: #000000;
    	font-weight: bold;
    	margin: 0px;
    	padding: 2px 5px 4px 5px;
    	border-right: 1px solid #8FB8BC;
    }
    
    a.glink:hover{
      	background-image:  url("glblnav_selected.gif");
    	text-decoration: none;
    }
    
    .skipLinks {display: none;}
    
    /************ subglobalNav styles **************/
    
    .subglobalNav{
    	position: absolute;
    	top: 84px;
    	left: 0px;
    	/*width: 100%;*/
    	min-width: 640px;
    	height: 20px;
    	padding: 0px 0px 0px 10px;
    	visibility: hidden;
    	color: #ffffff;
    }
    
    .subglobalNav a:link, .subglobalNav a:visited {
    	font-size: 80%;
    	color: #ffffff;
    }
    
    .subglobalNav a:hover{
    	color: #cccccc;
    }
    
    /*************** search styles *****************/
    
    #search{
    	position: relative;
    	top: 8px;
    	right: auto;
    	z-index: 101;
    	/*left: 720px;*/
    	width: 100%;
    	text-align: right;
    }
    
    #search input{
      font-size: 70%;
      margin: 0px  0px 0px 10px;
     }
     
    #search a:link, #search a:visited {
    	font-size: 80%;
    	font-weight: bold;
    	
    }
    
    #search a:hover{
    	margin: 0px;
    }
    
    
    /************* breadCrumb styles ***************/
    
    #breadCrumb{
    	padding: 5px 0px 5px 10px;
    	font: small Verdana,sans-serif;
    	color: #AAAAAA;
    }
    
    #breadCrumb a{
    	color: #AAAAAA;
    }
    
    #breadCrumb a:hover{
    	color: #005FA9;
    	text-decoration: underline;
    }
    
    
    /************** feature styles *****************/
    
    .feature{
    	padding: 0px 0px 10px 10px;
    	font-size: 80%;
    	min-height: 200px;
    	height: 200px;
    }
    html>body .feature {height: auto;}
    
    .feature h3{
    	font: bold 175% Arial,sans-serif;
    	color: #000000;
    	padding: 30px 0px 5px 0px;
    }
    
    .feature img{
    	float: left;
    	padding: 0px 10px 0px 0px;
    }
    
    
    /*************** story styles ******************/
    
    .story {
    	padding: 10px 0px 0px 10px;
    	font-size: 80%;
    }
    
    .story h3{
    	font: bold 125% Arial,sans-serif;
    	color: #000000;
    }
    
    .story p {
    	padding: 0px 0px 10px 0px;
    }
    
    .story a.capsule{
    	font: bold 1em Arial,sans-serif;
    	color: #005FA9;
    	display:block;
    	padding-bottom: 5px;
    }
    
    .story a.capsule:hover{
    	text-decoration: underline;
    }
    
    td.storyLeft{
    	padding-right: 12px;
    }
    
    
    /************** siteInfo styles ****************/
    
    #siteInfo{
    	clear: both;
    	border-top: 1px solid #cccccc;
    	font-size: small;
    	color: #cccccc;
    	padding: 10px 10px 10px 10px;
    	margin-top: -1px;
    }
    
    #siteInfo img{
    	padding: 4px 4px 4px 0px;
    	vertical-align: middle;
    }
    
    
    /************ sectionLinks styles **************/
    
    #sectionLinks{
    	margin: 0px;
    	padding: 0px;
    
    }
    
    #sectionLinks h3{
    	padding: 10px 0px 2px 10px;
    	border-bottom: 1px solid #cccccc;
    }
    
    #sectionLinks a:link, #sectionLinks a:visited {
    	display: block;
    	border-top: 1px solid #ffffff;
    	border-bottom: 1px solid #cccccc;
    	background-image:  url("bg_nav.jpg");
    	font-weight: bold;
    	padding: 3px 0px 3px 10px;
    	color: #21536A;
    }
    
    #sectionLinks a:hover{
    	border-top: 1px solid #cccccc;
    	background-color: #DDEEFF;
    	background-image: none;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    #sectionTables {
    	font:	bold 125% Arial,sans-serif;
    	padding: 5px 0px 5px 10px;
    	color: #21536A;
    }
    
    
    #sectionTables a:link, #sectionTables a:visited {
    	display: block;
    	font:	bold 128% Arial,sans-serif;
    	text-align:	left;
    	padding: 5px 0px 5px 5px;
    	color: #21536A;
    }
    
    #sectionTables a:hover{
    /*	border-top: 1px solid #cccccc; */
    	background-color: #DDEEFF;
    	background-image: none;
    /*	font-weight: bold; */
    	text-decoration: none;
    }
    
    /************* relatedLinks styles **************/
    
    .relatedLinks{
    	margin: 0px;
    	padding: 0px 0px 10px 10px;
    	border-bottom: 1px solid #cccccc;
    }
    
    .relatedLinks h3{
    	padding: 10px 0px 2px 0px;
    }
    
    .relatedLinks a{
    	display: block; 
    }
    
    
    /**************** advert styles *****************/
    
    #advert{
    	padding: 10px;
    }
    
    #advert img{
    	display: block;
    }
    
    /********************* end **********************/
    .grayHomeTop {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: small;
    	color: #aaaaaa;
    	display: inline;
    }

  2. #2
    Join Date
    May 2005
    Posts
    2,040
    You have the globallink set for position:absolute. This causes the hover to float to the top of the hover area. IE is improperly expanding that area while FF is working properly.

  3. #3
    Join Date
    Mar 2006
    Posts
    11
    Thanks for the spot, but now here is another that the fix created. I changed the global to relative but it moved the search hyperlinks onto the area below the line, so I went to the #search area and changed it to absolute; and that fixed the position but braught back the global problem again. Any ideas? is search in the wrong div somehow? thanks...

  4. #4
    Join Date
    Mar 2006
    Posts
    11

    resolved Ok after a couple of days, I found the real problem

    The real solution came when I found that the position of the search was affected by the relative/absolute of globallink. The first fix was to change the z-index to keep the divs from puching one another out of the line. The second was to change the div width of search from 100% to allow both hover areas to coexsist. FIXED!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles