HTML5 website works on IE but not other browsers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ross09
    New Member
    • Nov 2011
    • 3

    #1

    HTML5 website works on IE but not other browsers

    I have an issue with the categories list nav of my website. It is clickable on IE but it doesnt work on all other browsers.

    This is the HTML code:
    Code:
    <!DOCTYPE html>
    <!--[if lt IE 7 ]> <html lang="be-nl" class="no-js ie ie6"> <![endif]-->
    <!--[if IE 7 ]>    <html lang="be-nl" class="no-js ie ie7"> <![endif]-->
    <!--[if IE 8 ]>    <html lang="be-nl" class="no-js ie ie8"> <![endif]-->
    <!--[if IE 9 ]>    <html lang="be-nl" class="no-js ie ie9"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
    <head>
    <title>NVP Studio - Photos</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <script type="text/javascript" src="js/jquery-1.5.2.js" ></script>
    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/cufon-replace.js"></script> 
    <script type="text/javascript" src="js/Terminal_Dosis_300.font.js"></script>
    <script type="text/javascript" src="js/atooltip.jquery.js"></script>
    <script src="js/roundabout.js" type="text/javascript"></script>
    <script src="js/roundabout_shapes.js" type="text/javascript"></script>
    <script src="js/jquery.easing.1.2.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="js/hover-image.js"></script>
    <script type="text/javascript" src="js/tabs.js"></script>
    <script type="text/javascript" src="js/script.js"></script>
    <!--[if lt IE 9]>
    	<script type="text/javascript" src="js/html5.js"></script>
    	<style type="text/css">
    		.bg {behavior:url(js/PIE.htc)}
    	</style>
    <![endif]-->
    <!--[if lt IE 7]>
    	<div style='clear:both;text-align:center;position:relative'>
    		<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" alt="" /></a>
    	</div>
    <![endif]-->
    </head>
    <body id="page3">
    <div class="body1">
    	<div class="body2">
    		<div class="body3">
    			<div class="main">
    <!-- header -->
    				<header>
    					<div class="wrapper">
    						<h1><a href="index.html" id="logo"></a></h1>
    						<nav>
    							<ul id="menu">
    								<li><a href="mobile/index.html">Home</a></li>
    								<li><a href="Photos.html">Photos</a></li>
    								<li id="active"><a href="Videos.html">Videos</a></li>
    								<li><a href="Albums.html">Albums</a></li>
    								<li><a href="guestbook/guestbook.php">Guestbook</a></li>
    								<li class="end"><a href="Contact.php">Contact</a></li>
    							</ul>
    						</nav>
    					</div>
    					<div class="relative">
    						<div id="gallery">
    							<ul id="myRoundabout">
    								<li><img src="images/img10.png" alt=""></li>
    								<li><img src="images/img11.png" alt=""></li>
    								<li><img src="images/img12.png" alt=""></li>
    							</ul>
    						</div>
    					</div>
    				</header>
    <!-- / header-->
    <!-- content -->
    				<section id="content">
    					<div class="line1 wrapper">
    						<div class="wrapper tabs">
    							<article class="col1">
    								<h2>Categories</h2>
    								<div class="pad">
    									<ul class="nav">
    										<li class="selected"><a href="#Wedding">Wedding</a></li>
    										<li><a href="#Engagement">Engagement</a></li>
                                            <li></li>
                                            <li></li>
    									</ul>
    								</div>
    							</article>
    							<article class="col2 pad_left1 tab-content" id="Wedding">
    								<h2>Wedding</h2>
    								<ul class="gallery">
    									<li>
    										
    											<iframe src="http://player.vimeo.com/video/32660629?title=0&amp;byline=0&amp;portrait=0&amp;color=ff9933" width="549" height="309" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
    										</a>
    									</li>
    									
    								</ul>
    							</article>
    							<article class="col2 pad_left1 tab-content" id="Engagement">
    								<h2>Engagement</h2>
    								<ul class="gallery">
    									<li>
    										
    											<iframe src="http://player.vimeo.com/video/32664643?title=0&amp;byline=0&amp;portrait=0&amp;color=ff9933" width="549" height="309" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
    										</a>
    									</li>
    									
                                        
    								</ul>
    							</article>
    							
                                
    						</div>
    					</div>
    				</section>
    			</div>
    		</div>
    	</div>
    </div>
    <div class="body4">
    	<div class="main">
    		<section id="content2">
    		</section>
    	</div>
    </div>
    <!-- / content -->
    <div class="main">
    <!-- footer -->
    	<footer>
    		<div class="wrapper">
    			<span class="left"> Copyright ©2011 NVP   Studio<br>
    			</span>
    			<ul id="icons">
    				<li><a href="#" class="normaltip" title="Facebook"><img src="images/icon1.png" alt=""></a></li>
    				<li><a href="#" class="normaltip" title="Twitter"><img src="images/icon4.png" alt=""></a></li>
    				<li><a href="#" class="normaltip" title="Linkedin"><img src="images/icon5.png" alt=""></a></li>
    			</ul>
    		</div>
    <!-- {%FOOTER_LINK} -->
    	</footer>
    <!-- / footer -->
    </div>
    <script type="text/javascript"> Cufon.now(); </script>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$('#myRoundabout').roundabout({
    			 shape: 'square',
    			 minScale: 0.93, // tiny!
    			 maxScale: 1, // tiny!
    			 easing:'easeOutExpo',
    			 clickToFocus:'true',
    			 focusBearing:'0',
    			 duration:800,
    			 reflect:true
    		});
    		tabs.init();
    		// for lightbox
    		if ($("a[rel^='prettyPhoto']").length) {
    			$(document).ready(function() {
    				// prettyPhoto
    				$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});
    			});
    		} 
    	});
    </script>
    </body>
    </html>
    The Style.css:
    Code:
    /* Getting the new tags to behave */
    article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video {display:block;}
    mark, rp, rt, ruby, summary, time {display:inline}
    /* Left & Right alignment */
    .left {float:left}
    .right {float:right}
    .wrapper {width:100%;overflow:hidden}
    .relative {position:relative}
    /* Global properties */
    body {
    	background:#111;
    	border:0;
    	font:12px Arial, Helvetica, sans-serif;
    	color:#333333;
    	line-height:20px
    }
    .ic, .ic a {border:0;float:right;background:#fff;color:#f00;width:50%;line-height:10px;font-size:10px;margin:-220% 0 0 0;overflow:hidden;padding:0}
    .css3 {border-radius:8px;-moz-border-radius:8px;-webkit-border-radius:8px;box-shadow:0 0 4px rgba(0, 0, 0, .4);-moz-box-shadow:0 0 4px rgba(0, 0, 0, .4);-webkit-box-shadow:0 0 4px rgba(0, 0, 0, .4);position:relative}
    /* Global Structure */
    .main {margin:0 auto;width:916px;}
    .body1 {
    	background:url(../images/bg_img2.jpg) center 560px no-repeat #eaeaea;
    }
    .body2 {background:url(../images/bg_top_repeat.jpg) top repeat-x}
    .body3 {background:url(../images/bg_top_img.jpg) top center no-repeat}
    .body4 {background:url(../images/bg_content.gif) top repeat-x #363636;}
    
    /* main layout */
    a {color:#13c5ff;text-decoration:underline;outline:none; 	z-index: 999;
    	z-index: 999;
    	z-index: 100;
    	z-index: 1;
    	overflow: visible;
    }
    a:hover {text-decoration:none}
    h1 {
    	padding:0 0 0 0;
    	float:left
    }
    h2 {
    	font-size:40px;
    	line-height:1.2em;
    	color:#243C1A;
    	padding:1px 0 17px 0;
    	letter-spacing:-1px;
    	alignment-adjust: middle;
    }
    h2 span {color:#13c5ff}
    p {
    	padding-bottom:20px;
    }
    /* header */
    header {
    	height:600px
    }
    #logo {
    	display:block;
    	background:url(../images/logo.png) 0 0 no-repeat;
    	width:276px;
    	height:111px;
    	text-indent:-9999px
    }
    
    #menu {
    	float:right;
    	padding:90px 0 0 0;
    }
    #menu li {
    	float:left;
    	padding-right:28px
    }
    #menu .end {padding-right:0}
    #menu li a {display:block;font-size:16px;color:#fff;text-decoration:none;background:url(../images/menu_marker.png) 0 6px no-repeat;padding-left:20px}
    #menu li a:hover, #menu #active a {
    	color:#FDEA55
    }
    .roundabout-holder  {height:5em;}
    .roundabout-moveable-item {cursor:pointer;width:636px;height:478px;margin-top:229px;padding-bottom:20px}
    .roundabout-in-focus {cursor:auto;}
    #gallery {position:relative;height:1000px}
    #gallery img {display:block;width:100%;height:100%}
    #gallery li {}
    /* content */
    #content {padding-bottom:59px}
    #content2 {padding-top:39px;color:#fff;padding-bottom:60px}
    #content2 h2 {
    	color:#FDEA4D
    }
    .pad_left1 {padding-left:67px}
    .pad {
    	padding:0 0 0 0
    }
    .pad_bot1 {
    	padding-bottom:14px;
    }
    .pad_bot2 {padding-bottom:6px}
    .marg_right1 {
    	margin-right:24px
    }
    .marg_left1 {margin-left:-5px}
    .line1 {background:url(../images/line_ver1.gif) 325px 0 repeat-y}
    .line2 {background:url(../images/line_ver1.gif) 635px 0 repeat-y}
    #content2 .line2, #content2 .line1 {background-image:url(../images/line_ver2.png)}
    .list1 {}
    .list1 li {padding-bottom:20px;padding-left:14px;background:url(../images/marker_1.gif) 0 8px no-repeat}
    .list1 li a {display:block;font-weight:bold;color:#0f0f0f;text-decoration:none}
    .list1 li a:hover {color:#13c5ff}
    .button {display:inline-block;color:#fff;line-height:28px;text-decoration:none;padding:0 14px;background:#283E1D}
    .button:hover {background:#373737}
    #content2 .button:hover {background:#fff;color:#373737}
    .link1 {color:#0f0f0f;font-weight:bold}
    #content2 .link1 {color:#fff}
    .link2 {text-decoration:none}
    .link2:hover {color:#000}
    #content2 .link2:hover {color:#fff}
    .date {
    	float:left;
    	width:100%;
    	margin-right:20px;
    	text-align:left;
    	font-size:30px;
    	color:#FFFFFF;
    	line-height:1.2em;
    	padding-bottom:20px
    }
    .date span {display:block;font-size:53px;line-height:1.2em;margin-top:-8px;margin-bottom:-22px;letter-spacing:-2px}
    .color1 {color:#13c5ff}
    /* tabs begin */
    .tabs {}
    .tabs ul.nav {margin-top:-5px}
    .tabs ul.nav li {line-height:30px}
    .tabs ul.nav li a {color:#0f0f0f;padding-left:16px;background:url(../images/marker_1.gif) 2px 6px no-repeat}
    .tabs ul.nav li a:hover, .tabs ul.nav .selected a {
    	color:#283E1D;
    	text-decoration:none
    }
    .tabs .content {}
    .tabs .tab-content {}
    /* tabs end */
    /* Lightbox image */
    .lightbox-image {position:relative;overflow:hidden;display:block;background:#fff}
    .lightbox-image img {position:relative;z-index:2}
    .lightbox-image span {display:block;position:absolute;left:0;top:0;width:100%;height:100%;background:url(../images/magnify.png) no-repeat 50% 50%;z-index:1}
    .pp_details {display:none;height:0;padding:0;margin:0;font-size:0;line-height:0}
    .pp_description {display:none;height:0;padding:0;margin:0;font-size:0;line-height:0}
    .gallery {margin-top:-10px;padding-left:8px;width:100%;overflow:hidden}
    .gallery li {float:left;padding-right:10px;padding-top:10px}
    .gallery .end {padding-right:0}
    /* footer */
    footer {
    	padding-top:43px;
    	font-size:12px;
    	color:#6b6b6b;
    	text-align:left;
    	min-height:45px;
    	padding-bottom:40px
    }
    footer a {}
    footer a:hover {}
    #icons {float:right;padding:7px 14px 0 0}
    #icons li {padding-left:11px;float:left}
    footer .left {width:598px}
    /* Tooltips */
    .aToolTip {border:1px solid #000;background:url(../images/bg_opacity.png) repeat;color:#fff;margin:0;padding:2px 10px;font-size:11px}
    .aToolTip .aToolTipContent {position:relative;margin:0;padding:0;}
    a.aToolTipCloseBtn {display:block;height:20px;width:20px;overflow:hidden;background:url(../images/loading/close.gif) no-repeat;text-indent:-9999px;outline:none;position:absolute;top:-15px;right:-20px;}
    form {
    	width:100%;
    	margin:0 auto;
    }
    
    label {
    	display:block;
    	
    	
    }
    
    input, textarea {
    	width:800px;
    	height:20px;
    	background:#efefef;
    	border-radius:5px;
    	-moz-border-radius:5px;
    	-webkit-border-radius:5px;
    	border:1px solid #999999;
    	padding:3px;
    	margin-top:3px;
    	font-size:0.9em;
    	color:3a3a3a;
    }
    
    	input:focus, textarea:focus {
    		border:1px solid #283E1D;
    	}
    
    textarea {
    	height:213px;
    	font-family:Arial, Helvetica, sans-serif;
    	
    }
    
    #submit {
    	background-color: #FDEA55;
    	width:110px;
    	height:25px;
    	border:none;
    	margin-top:20px;
    	cursor:pointer;
    }
    
    	#submit:hover {
    		opacity:0.9;
    	}
    Please can anyone take a look at these codes, Thank you in advance
    PS its a customized tamplete.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    There is far too much there to cut/paste to help you and most of the needed css and images, too. So an online link is necessary.

    Suffice to say, the web developer's mantra is, "If it works in IE but not the modern browsers, the code is wrong."

    Comment

    • Ross09
      New Member
      • Nov 2011
      • 3

      #3
      Here is a link to the site:

      From there you can navigate between the website pages. I would apprciate you help.
      Thank you
      Last edited by Ross09; Nov 27 '11, 01:41 PM. Reason: wrong typing

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        You set your #gallery div to a height of 1000px which is covering up those links. IE is ignoring that for some reason while the modern browsers do what your code says to do.

        Comment

        • Ross09
          New Member
          • Nov 2011
          • 3

          #5
          Problem solved. You are great, thanks a lot.

          Comment

          Working...