March 13, 201313 yr This is good and is how it looks on computers , and this is how it looks on my Iphone . I have attached files for quick ease of access.Two Problems:1:) The navigation bar (home, services, portfolio, etc) final button - contact us is being displaced out of horizontal line. This is the css:#nav-list li a.no-pad { padding:0; margin:0; float:right; }2:) The side navigation bar is not being aligned properly to the right. It seems like it would be good for height if the 'contact us' was working properly. It just seems that it is not floating to the right properly.The order of the page goes, I have the top of the page stored as a ,php file which echoes out the top of the page (same on every page):Container > Nav Bar (horizontal) > Sidebar <!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" xml:lang="en" lang="en"> <head> <meta name="google-site-verification" content="KjEZ8NfGWnOxsEW_m1pW9YrMSg9fgz0ILXoLY5v3FJ8" /> <link rel='stylesheet' media="screen" type='text/css' href='layout.css' /> <link rel='stylesheet' media='screen' type='text/css' href='lightbox/css/lightbox.css' /> <title><?php echo $pagetitle; ?></title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="lightbox/js/prototype.js"></script> <script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="lightbox/js/lightbox.js"></script> <?php $scriptname = basename($_SERVER['PHP_SELF']); if ($scriptname == 'portfolio.php') { echo "<link rel='stylesheet' media='screen' type='text/css' href='portfolio.css' />"; } ?> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-11091131-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js" type="text/javascript"></script> <div id="container"> <div id="masterhead"> <span>Precise Formwork Limited</span> </div> <div id="nav"> <ul id="nav-list"> <?php $scriptname = basename($_SERVER['PHP_SELF']); echo '<li>'; if ($scriptname == 'index.php') { echo '<a href="index.php" class="highlight">home</a>'; } else { echo '<a href="index.php">home</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'services.php') { echo '<a href="services.php" class="highlight">services</a>'; } else { echo '<a href="services.php">services</a>';} echo '</li>'; echo '<li>'; if ($scriptname == 'portfolio.php') { echo '<a href="portfolio.php" class="highlight">portfolio</a>'; } else { echo '<a href="portfolio.php">portfolio</a>';} echo '</li>'; echo '<li>'; if ($scriptname == 'links.php') { echo '<a href="links.php" class="highlight">links</a>'; } else { echo '<a href="links.php">links</a>';} echo '</li>'; echo '<li><a href="http://www.concretestairslondon.co.uk" target="_blank">blog</a></li>'; echo '<li class="no-pad">'; if ($scriptname == 'contact.php') { echo '<a href="contact.php" class="no-pad highlight">contact us</a>'; } else { echo '<a href="contact.php" class="no-pad">contact us</a>';} echo '</li>'; ?> </ul> </div> <div id="sidebar"> <ul id="side"> <?php $scriptname = basename($_SERVER['PHP_SELF']); echo '<li>'; if ($scriptname == 'slabs.php') { echo '<a href="slabs.php" class="highlight-side">Concrete Slabs</a>'; } else { echo '<a href="slabs.php">Concrete Slabs</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'rc-capping-beam.php') { echo '<a href="rc-capping-beam.php" class="highlight-side">Capping Beam</a>'; } else { echo '<a href="rc-capping-beam.php">Capping Beam</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'bespoke-formwork.php') { echo '<a href="bespoke-formwork.php" class="highlight-side">Bespoke Formwork</a>'; } else { echo '<a href="bespoke-formwork.php">Bespoke Formwork</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'radius-wall-formwork.php') { echo '<a href="radius-wall-formwork.php" class="highlight-side">Concrete Retaining Walls</a>'; } else { echo '<a href="radius-wall-formwork.php">Concrete Retaining Walls</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'spiral.php') { echo '<a href="spiral.php" class="highlight-side">Spiral Staircase</a>'; } else { echo '<a href="spiral.php">Spiral Staircase</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'helical.php') { echo '<a href="helical.php" class="highlight-side">Helical Staircase</a>'; } else { echo '<a href="helical.php">Helical Staircase</a>'; } echo '</li>'; ?> </ul> </div> <div id="page-content"> Then I have the individual page as seperate files and are customized and individual. E.g. main page: <?php $pagetitle='Bespoke Formwork'; include 'top.php'; ?> <script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script> <script type="text/javascript"> YUI({ modules: { 'gallery-slideshow-base': { fullpath: 'ani-slideshow/gallery-slideshow-base-min.js', requires: ['node', 'event', 'widget'] }, 'gallery-slideshow-animated': { fullpath: 'ani-slideshow/gallery-slideshow-animated-min.js', requires: ['anim', 'gallery-slideshow-base'] } } }).use("gallery-slideshow-animated", function(Y) { Y.SlideshowAnimated.auto(); }); </script> <div class="movie"> <object width="305" height="215"> <param name="movie" value="3d_concrete_stairs.swf"> <embed src="3d_concrete_stairs.swf" width="305" height="215"> </embed> </object> </div> <h1>About Us</h1> <p>At Precise Formwork Limited we are a specialist Formwork sub-contractor, primarily working for larger main-contractors, and occasionaly private clients. Specialising further into reinforced concrete staircases, we are able to provide 3 dimensional renderings even onto the existing property, so you can get an accurate impression of the project before it takes place.</p> </br> <h2>Bespoke Formwork</h2> <p>We specialise further in custom moulds, where a high-quality finish is required and the concrete structure is visible at all times. There seems to be a misconception in the formwork industry, that pre-fabricated panels obtain a higher-quality finish. Though our experience has shown this is not the case at all. The flexibility of traditional timber formwork achieves far better results than pre-fabbed panels.</p> <?php include 'bottom.php'; ?> Any advice greatly appreciated, there does not seem to be much on Ios 6. index.php layout.css top.php
March 14, 201313 yr Author Hi Rich thanks for your reply, yes here is my link http://www.preciseformwork.com. The attached files top.php and layout.css are attached on my 1st post. Sorry about the code, I pasted it in there and for some reason it just entered horizontally and not vertically.
April 1, 201313 yr Author <!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" xml:lang="en" lang="en"> <head> <meta name="google-site-verification" content="KjEZ8NfGWnOxsEW_m1pW9YrMSg9fgz0ILXoLY5v3FJ8" /> <link rel='stylesheet' media="screen" type='text/css' href='layout.css' /> <link rel='stylesheet' media='screen' type='text/css' href='lightbox/css/lightbox.css' /> <title><?php echo $pagetitle; ?></title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="lightbox/js/prototype.js"></script> <script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="lightbox/js/lightbox.js"></script> <?php $scriptname = basename($_SERVER['PHP_SELF']); if ($scriptname == 'portfolio.php') { echo "<link rel='stylesheet' media='screen' type='text/css' href='portfolio.css' />"; } ?> </head> <body> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js" type="text/javascript"></script> <div id="container"> <div id="masterhead"> <span>Precise Formwork Limited</span> </div> <div id="nav"> <ul id="nav-list"> <?php $scriptname = basename($_SERVER['PHP_SELF']); echo '<li>'; if ($scriptname == 'index.php') { echo '<a href="index.php" class="highlight">home</a>'; } else { echo '<a href="index.php">home</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'services.php') { echo '<a href="services.php" class="highlight">services</a>'; } else { echo '<a href="services.php">services</a>';} echo '</li>'; echo '<li>'; if ($scriptname == 'portfolio.php') { echo '<a href="portfolio.php" class="highlight">portfolio</a>'; } else { echo '<a href="portfolio.php">portfolio</a>';} echo '</li>'; echo '<li>'; if ($scriptname == 'links.php') { echo '<a href="links.php" class="highlight">links</a>'; } else { echo '<a href="links.php">links</a>';} echo '</li>'; echo '<li><a href="http://www.preciseformwork.co.uk/wordpress" target="_blank">blog</a></li>'; echo '<li class="no-pad">'; if ($scriptname == 'contact.php') { echo '<a href="contact.php" class="no-pad highlight">contact us</a>'; } else { echo '<a href="contact.php" class="no-pad">contact us</a>';} echo '</li>'; ?> </ul> </div> <ul id="side"> <li><a href="slabs.php">Concrete Slabs</a></li> <li><a href="rc-capping-beam.php">Capping Beam</a></li> <li><a href="bespoke-formwork.php">Bespoke Formwork</a></li> <li><a href="radius-wall-formwork.php">Concrete Retaining Walls</a></li> </ul> <ul id="side"> <?php $scriptname = basename($_SERVER['PHP_SELF']); echo '<li>'; if ($scriptname == 'slabs.php') { echo '<a href="slabs.php" class="highlight-side">Concrete Slabs</a>'; } else { echo '<a href="slabs.php">Concrete Slabs</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'rc-capping-beam.php') { echo '<a href="rc-capping-beam.php" class="highlight-side">Capping Beam</a>'; } else { echo '<a href="rc-capping-beam.php">Capping Beam</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'bespoke-formwork.php') { echo '<a href="bespoke-formwork.php" class="highlight-side">Bespoke Formwork</a>'; } else { echo '<a href="bespoke-formwork.php">Bespoke Formwork</a>'; } echo '</li>'; echo '<li>'; if ($scriptname == 'radius-wall-formwork.php') { echo '<a href="radius-wall-formwork.php" class="highlight-side">Concrete Retaining Walls</a>'; } else { echo '<a href="radius-wall-formwork.php">Concrete Retaining Walls</a>'; } echo '</li>'; ?> </ul> <div id="page-content"> Above: Top.php <?php $pagetitle='Bespoke Formwork'; include 'top.php'; ?> <script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script> <script type="text/javascript"> YUI({ modules: { 'gallery-slideshow-base': { fullpath: 'ani-slideshow/gallery-slideshow-base-min.js', requires: ['node', 'event', 'widget'] }, 'gallery-slideshow-animated': { fullpath: 'ani-slideshow/gallery-slideshow-animated-min.js', requires: ['anim', 'gallery-slideshow-base'] } } }).use("gallery-slideshow-animated", function(Y) { Y.SlideshowAnimated.auto(); }); </script> <div class="movie"> <object width="305" height="215"> <param name="movie" value="3d_concrete_stairs.swf"> <embed src="3d_concrete_stairs.swf" width="305" height="215"> </embed> </object> </div> <h1>About Us</h1> <p>At Precise Formwork Limited we are a specialist Formwork sub-contractor, primarily working for larger main-contractors, and occasionaly private clients. Specialising further into reinforced concrete staircases, we are able to provide 3 dimensional renderings even onto the existing property, so you can get an accurate impression of the project before it takes place.</p> </br> <h2>Bespoke Formwork</h2> <p>We specialise further in custom moulds, where a high-quality finish is required and the concrete structure is visible at all times. There seems to be a misconception in the formwork industry, that pre-fabricated panels obtain a higher-quality finish. Though our experience has shown this is not the case at all. The flexibility of traditional timber formwork achieves far better results than pre-fabbed panels.</p> <?php include 'bottom.php'; ?> Above: Index.php /* page */ body { padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; background-color:#000000; } #container { position:relative; width:900px; height:100%; margin:0px; padding:0px; margin-left:auto; margin-right:auto; border:0px; background-color:#000000; } #page-content { position:absolute; width:700px; height:100%; float:left; clear:right; padding:10px 10px 0 0; } .spacer { clear:both; } .thumbs { padding:0; display:inline; } a { padding:0; margin:0; border:0; } img { border: none; } /* page */ /* headings */ #masterhead { position:relative; width:900px; height:79px; padding:0px 0px 0px 0px; margin:5px 0 0 0; } #masterhead span { background-image:url(images/logo.png); position:absolute; width:100%; height:100%; padding:0px 0px 0px 0px; margin:0px; color:#F8F5FF; text-indent:-999px; } h1, h2, h3, h4, h5, h6 { font-family: "Lucidia Grande", "Lucida Sans Unicode", "Verdana", sans-serif; font-size: 1.2em; color:#CCCCCC; letter-spacing:1.5px; font-weight:500; padding:0; margin:0; text-decoration:underline; } p { color:#666666; font-family: "Trebuchet", "Tahoma", "Arial", sans-serif; letter-spacing:0.1em; font-size:1em; } /* headings */ /* lists */ ul { letter-spacing: 1px; } #nav { padding:0; margin:0; } #nav-list { position:relative; padding:0; margin:0; } #nav-list li{ position:relative; display:inline; padding:0 2.5em 0 0; margin:0; font-family: "Lucidia Grande", "Lucida Sans Unicode", "Verdana", sans-serif; font-size: 25px; } #nav-list li a{ text-decoration:none; color:#FFFFFF; margin:0; padding:0; } #nav-list li a:hover{ color:#FFF3CC; } #nav-list li a.no-pad { padding:0; margin:0; float:right; } #nav-list .no-pad { padding:0; margin:0; float:right; } #nav-list li a.highlight { color:#FFFF66; } /* Sidebar Formatting */ #sidebar { float: right; } #side { color:#FFFFFF; list-style:none; padding: 10px 0 10px 0; font-size: 20px; font-family: "Lucidia Grande", "Lucida Sans Unicode", "Verdana", sans-serif; max-width:200px; margin:0; } #side li{ text-align:right; padding: 0 0 10px 0; line-height:0 0 10px 0; border-bottom: 1px solid #272727; } #side li a { color:#CCCCCC; display:block; text-decoration:none; } #side li a:hover { color:#FFF3CC; } #side .highlight-side { color:#FFFF66; } /* lists */ /* slideshows */ .slideshow {position: relative; height: 250px; width: 393px; overflow: hidden; float:right;} .slide { display: none; position: absolute;} .slide.current { display: block; } .portfolio-slides { } #1 { float:left; } #2 { float:left; } .movie { width:auto; float:right; } Any Ideas on what's causing this?
Create an account or sign in to comment