Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Question header images aligned to right in safari?!

    header images are aligned to the right in Safari?! Does anyone know why?
    http://www.jbiddulph.com/niche/

    html
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		<title>Niche</title>
    		<meta name="keywords" content="Niche"/>
    		<meta name="description" content="Niche"/>
    		<link href="css/reset.css" rel="stylesheet" type="text/css"/>
    		<link href="css/style.css" rel="stylesheet" type="text/css"/>
    		<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
    		<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
    		<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
    		<script type="text/javascript">
    		/* <![CDATA[ */function navChange(){
    			$('#nav ul li').each(function(){
    				$(this).append('<span />');
    				$(this).hover(function(){
    					$('span', this).stop().animate({backgroundColor: $(this).css('border-bottom-color')}, 1300).animate({opacity: 1}, 1300);
    		        	}, function () {
    		        	$('span', this).stop().animate({opacity: 0}, 1000);
    				});
    			});
    		}
    		$(document).ready(function() {
    		navChange();
    		});/* ]]> */
    		</script>
    		<script type="text/javascript">
    		/* <![CDATA[ */$(function() {
    		        
    		    $('#slideshow1').after('<div id="nav1" class="nav">').cycle({
    		        fx:     'fade',
    		        speed:  'slow',
    		        timeout: 5000,
    		        pager:  '#nav1',
    		        before: onBefore,
    		next: $('#slideshow1 img')
    		    });
            function onBefore() {
    	        $('#title').html(this.alt);
    	    }
    	    
    		});/* ]]> */
    		</script>
    	</head>
    	<body>
    		<div id="wrapper">
    			<div id="topheader">
    				<div class="colors">&nbsp;</div>
    				<div class="logo">Niche Logo</div>
    			</div>
    			<div id="nav">
    				<ul>
    					<li class="home"><a href="#">HOME</a></li>
    					<li class="about"><a href="#">ABOUT US</a></li>
    					<li class="cdesign"><a href="#">COMMERCIAL DESIGN</a></li>
    					<li class="rdesign"><a href="#">RESIDENTIAL DESIGN</a></li>
    					<li class="services"><a href="#">SERVICES</a></li>
    					<li class="clients"><a href="#">CLIENTS</a></li>
    					<li class="contact"><a href="#">CONTACT</a></li>
    					<li class="historic"><a href="#">NICHE HISTORIC</a></li>
    				</ul>
    			</div>
    			<div id="header">
    				<div id="slideshow1">
    				 	<img src="images/banner1.jpg" alt="1"/>
    				 	<img src="images/banner2.jpg" alt="2"/>
    				 	<img src="images/banner3.jpg" alt="3"/>
    			 	</div>
    			</div>
    			<div id="content">
    				<div id="left-panel">
    				  <h2>INTERIOR DESIGN SERVICES:</h2>
    				  <ul>
    				  	<li>Retail</li>
    					<li>Hotels</li>
    					<li>Exhibitions</li>
    					<li>Showrooms</li>
    					<li>Offices</li>
    					<li>Residential</li>
    					<li>Leisure</li>
    				  </ul>
    				</div>
    				<div id="right-panel">
    				  <p>Welcome to Niche Interior Design Brighton. We are a young dynamic company with a passion for creating innovative interior design solutions for both the commercial and residential markets.</p>
    
    <p>We work closely with our clients taking time to understand their vision and the needs and desires of the people who will be using the space. This ensures the final designed environments not only look stunning but respond ultimately to the people that will experience it.
    </p>
    				</div>
    			</div>
    			<div id="footer">
    				<ul>
    					<li>Home</li>
    					<li>Retail Design Brighton</li>
    					<li>Residential Design Brighton</li>
    					<li>Hotel Design Brighton</li>
    					<li>Exhxibition Design Brighton</li>
    					<li>Links down here to help with SEO</li>
    					<li>Design www.sbannister.co.uk</li>
    				</ul>
    			</div>
    		</div>
    	</body>
    </html>
    CSS
    Code:
    /* main bits */
    html { background-color: #000000; }
    body { background-color: #000000; font-size: 12px; }
    
    #wrapper { margin: 0 auto; width:970px; background-color: #292929; display: block; margin-top: 28px; padding:15px 15px 0px 15px; }
    
    /* TOP HEADER */
    #topheader { height:65px; background-color: #333333; }
    #topheader .logo { background-image: url(../images/logo.jpg); float: left; height:65px; width:257px; overflow: hidden; text-indent: -400px; display: block; }
    #topheader .colors { background-image: url(../images/colors-right.jpg); float: right; height:65px; width:101px; display: block; }
    
    /* NAVIGATION */
    #nav { width:970px; height:27px; background-image: url(../images/nav-grey.gif); background-repeat: repeat-x; }
    #nav li { display: inline; float:left; padding: 5px 16px; position: relative; }
    #nav li.home{ border-bottom: 4px solid #ff8300; }
    #nav li.about{ border-bottom: 4px solid #50c1ff; }
    #nav li.cdesign{ border-bottom: 4px solid #c1c100; }
    #nav li.rdesign{ border-bottom: 4px solid #6f0c6a; }
    #nav li.services{ border-bottom: 4px solid #bc2b3c; }
    #nav li.clients{ border-bottom: 4px solid #609600; }
    #nav li.contact{ border-bottom: 4px solid #e45fbc; }
    #nav li.historic{ border-bottom: 4px solid #063750; display: block; }
    #nav li a { color: #ffffff;text-decoration: none; position: relative; z-index: 2; }
    #nav ul li span { display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
    
    /* HEADER */
    #header { width:970px; height: 368px; position: relative; }
    #slideshow1 { position:absolute; top:0px; right:0px; }	
    #nav1 { bottom: 0px; position: absolute; right: 0px; }
    #nav1 a { margin: 0 2px; font-size: 11px; font-weight: normal; padding: 3px 5px; background: #333333; text-decoration: none; color: #CBCBCB; }
    #nav1 a.activeSlide { background: #ff8300; }
    #nav1 a:focus { outline: none; }
    
    /* CONTENT */
    #content { width:970px; display: block; margin-top:20px; }
    
    /* LEFT */
    #left-panel { width:265px; float:left; text-align: left; color: #999999; padding-left: 20px;}
    #left-panel h2 { font-size: 12px; font-weight: bold; text-transform: uppercase; color:#ff9900; margin-bottom:10px; }
    #left-panel li { margin-bottom:4px; }
    
    /* RIGHT */
    #right-panel { width:685px; float:left; text-align: left; color: #999999; }
    #right-panel h1 { font-size: 28px; color:#ff9900; margin-bottom:10px; }
    #right-panel h2 { font-size: 20px; color:#ff9900; margin-bottom:10px; }
    #right-panel p { padding-right: 210px; margin-bottom: 20px; font-size: 13px; }
    
    /* FOOTER */
    #footer { color: #999999; font-size: 10px; width:970px; display: block; clear:both; padding:10px 0px;}
    #footer li { display: inline; padding:0px 10px; border-right:1px solid #999999; }

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    It seems issue with wrapper's width & margin and then with header's width. I ll easier for me to debug it if you ll share complete, page, js n css with images in Zip folder.


    Cheers


  •  

    Posting Permissions

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