September 17, 201214 yr Strange, for some reason my IE is still picking up my default style sheet not my IE 8 one. Any ideas why? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Home-Wood Tower</title> <link rel="stylesheet" href="style/style.css"> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="style/ie8-and-down.css" /> <![endif]--> <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="./nivo-slider.css" type="text/css" media="screen" /> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> </head> <body> <div id="big_wrapper"> <!--header file for all pages within the website (header.php)--> <?php include ("header.php") ?> <div id="page_container"> <div class="slider-wrapper theme-default"> <div id="slider" class="nivoSlider"> <img src="images/hp_sliderimage1.jpg" data-transition="slideInLeft" border="0"/> <img src="images/hp_sliderimage2.jpg" data-transition="slideInLeft" border="0"/> <img src="images/hp_sliderimage3.jpg" data-transition="slideInLeft" border="0"/> </div> </div> <section id="introcol"> <div class="leftleftcol"> <h4>About Wood Tower</h4><br> <p>Wood Tower is a London based company specialising in the craft of construction, furniture and joinery. The company was established in 2001 and has been in business ever since working on a number of different projects.</p><br> <a href="aboutus.php">Learn more about Wood Tower</a><br> <br><br> </div> <div class="rightcol"> <img src="img/hp_furniturebox.jpg" width="205" height ="46" border="0"/><br><br> <p>View Wood Tower's collection of hand crafted furniture. </p><br> <a href="projects.php">Furniture gallery </a><br></br> <a href="">Online store </a><br></br> <p>Please contact us regarding any specific enquires</p> <br></br> </div> <div class="midcol"> <img src="img/hp_joinerybox.jpg" width="205" height ="46" border="0"/><br><br> <p>Wood Tower pride themselves on their experience and workmanship. Look though previous work to see our superior quality for yourself. </p><br> <a href="projects.php">Joinery gallery </a><br></br> <a href="services.php">Services </a> <br></br> </div> <div class="leftcol"> <img src="img/hp_constructionbox.jpg" width="205" height ="46" border="0"/><br><br> <a href="">Home </a><br></br> <a href="services.php">Construction </a><br></br> <a href="">Commerical properties </a><br></br> <a href="">Get an online quote </a><br></br> <br></br> </div> </section> </div> <script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="./jquery.nivo.slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </div> <!--header file for all pages within the website (header.php)--> <div id="footer"> <?php include ("footer.php") ?> </div> </body> </html>
September 17, 201214 yr Hi put this below the default css <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="style/ie8-and-down.css" /> <![endif]--> Edited September 17, 201214 yr by ELITE
September 17, 201214 yr Author yes its in C:\xampp\htdocs\woodtower\style where there are two style sheets. style.css and ie8-and-down.css
September 17, 201214 yr whats in the default.css <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" />
September 17, 201214 yr Author @charset "utf-8"; /* CSS Document */ *{ margin: 0px auto; padding: 0px; } body{ margin: 0px auto; padding: 0px; text-align:center; background-color: #f0ecec; } header, section, footer, aside, nav, article, hgroup{ display:block; } a, a:visited { text-decoration:none; outline:none; color:#4E78A0; font-family: 'Droid Sans', sans-serif; font-size:14px; } a:hover{ text-decoration:underline; color: #38B0DE; font-family: 'Droid Sans', sans-serif; font-size:14px; } p{ font-weight: normal; font-size: 14px; font-family: 'Droid Sans', sans-serif; color:#313131; } #buttons_position_inline{ position:relative; overflow:hidden; } #Meet-our-team-button{ position:relative; width:186px; height:48px; cursor: pointer; z-index:1; opacity:1; left:-150px; overflow:hidden; } #Meet-our-team-button:hover{ opacity:0.7; } #Get-in-touch-button{ position:relative; width:186px; height:48px; cursor: pointer; z-index:1; opacity:1; top:-47px; left:-80px; overflow:hidden; margin-right:20px; } #Get-in-touch-button:hover{ opacity:0.7; } h4{ font-weight: normal; font-size: 18px; font-family: 'Droid Sans', sans-serif; color:#313131; } #top_header{ margin: 0px auto; width: 1000px; height: 108px; background: white; } #top-header-sub{ margin: 0px auto; width: 1000px; height: 108px; background: #fff; position: relative; } #home-top-header{ background: none; width:1000px; height:550px; } #logo_woodtower{ position: absolute; left: 10px; top: 5px; z-index: 1; } #logo_woodtower:hover{ opacity:0.9; } #big_wrapper{ width: 1600px; margin: 0px auto; text-align: left; width: 100%; height: auto; } #page_container{ background:white; border: 1px solid #d7d7d7; margin: 0px auto; width: 1000px; height: auto; overflow: auto; position: relative; } /*---------------------------- Home page styles for the boxes underneath the image slider -----------------------------*/ #introcol{ position:relative; top:-30px; font-size: 14px; font-family: 'Droid Sans', sans-serif; color:#1b1b1b; } #introcol .leftleftcol{ margin-left:22px; width:248px; float:left; padding-left: 10px; padding-top:18px; } #introcol .leftcol{ width:205px; float:right; border-left: 2px solid #d7d7d7; padding-left: 10px; } #introcol .rightcol{ width:205px; padding-left:10px; float:right; margin-right:30px; } #introcol .midcol{ float:right; border-left: 2px solid #d7d7d7; border-right: 2px solid #d7d7d7; width:205px; padding-left: 10px; padding-right: 10px; margin-left:10px; margin-right:10px; } /*---------------------------- END OF STYLES FOR HOME PAGE BOXES -----------------------------*/ #message_successful{ padding:80px; } /*---------------------------- Footer of the website - using a php input for easy update -----------------------------*/ #footer { position: relative; height: 100px; width:1000px; background:white; padding-top:5px; margin-top: 0px; color:Black; }
September 17, 201214 yr I know this won't fix your current issue without completely implementing it into your project, but it's definitely worth considering when you start your next project: http://html5reset.org/ It's a great reset template that you can amend as you need, and it also has a great feature where you can add specific IE styles for each of the browsers without creating extra files. It's as easy as adding an extra style with ie7 before the original.
September 17, 201214 yr so is <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" /> overriding the <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="style/ie8-and-down.css" /> <![endif]--> what is in the ie8 css
September 17, 201214 yr Author yes it is overriding it ie8 consists of: @charset "utf-8"; /* CSS Document */ *{ margin: 0px auto; padding: 0px; } body{ margin: 0px auto; padding: 0px; text-align:center; background-color: black; }
September 17, 201214 yr ok you have yes it is overriding it ie8 consists of: @charset "utf-8"; /* CSS Document */ *{ margin: 0px auto; padding: 0px; } body{ margin: 0px auto; padding: 0px; text-align:center; background-color: black; } if its overriding it put the IE8 css below it <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" /> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="style/ie8-and-down.css" /> <![endif]--> Edited September 17, 201214 yr by ELITE
September 17, 201214 yr take a took at your html on the live site <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Home-Wood Tower</title> <link rel="stylesheet" href="style/style.css" /> <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="./nivo-slider.css" type="text/css" media="screen" /> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> <!--[if lt IE 9]> <link rel="stylesheet" href="style/ie8-and-down.css" type="text/css" /> <![endif]--> <script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="./jquery.nivo.slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </head> <body> <div id="big_wrapper"> <!--header file for all pages within the website (header.php)--> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"/> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="style/style.css"> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> <style TYPE="text/css"> #nav { position:absolute; width: 560px; right:230px; top: 45px; list-style: none; } #nav li { float: left; list-style: none; } #nav li a { display: block; padding: 8px 15px; text-decoration: none; font-weight: normal; font-size: 16px; font-family: 'Droid Sans', sans-serif; color:#4E78A0; border-right: 1px solid #d7d7d7; } #nav li a:hover { color: #38B0DE; background-color: #fff; } #telephone{ position:absolute; right:10px; padding:5px; } </style> </head> <body> <div id="top_header"> <div id="top-header-sub"> <div id="logo_woodtower"> <a href="index.php"><img src="img/woodtower.jpg" border="0" /></a> </div> <div id="telephone"> <p>Tel: +44(0)208 443 1234</p> </div> <ul id="nav"> <li><a href="aboutus.php">ABOUT US</a></li> <li><a href="projects.php">PROJECTS</a></li> <li><a href="services.php">SERVICES</a></li> <li><a href="team.php">TEAM</a></li> <li><a href="contact.php">CONTACT</a></li> </ul> </div> </div> </body> </html> <div id="page_container"> <div class="slider-wrapper theme-default"> <div id="slider" class="nivoSlider"> <img src="images/hp_sliderimage1.jpg" data-transition="slideInLeft" border="0"/> <img src="images/hp_sliderimage2.jpg" data-transition="slideInLeft" border="0"/> <img src="images/hp_sliderimage3.jpg" data-transition="slideInLeft" border="0"/> </div> </div> <section id="introcol"> <div class="leftleftcol"> <h4>About Wood Tower</h4><br> <p>Wood Tower is a London based company specialising in the craft of construction, furniture and joinery. The company was established in 2001 and has been in business ever since working on a number of different projects.</p><br> <a href="aboutus.php">Learn more about Wood Tower</a><br><br><br> </div> <div class="rightcol"> <img src="img/hp_furniturebox.jpg" width="205" height ="46" border="0"/><br><br> <p>View Wood Tower's collection of hand crafted furniture. </p><br> <a href="projects.php">Furniture gallery </a><br></br> <a href="">Online store </a><br></br> <p>Please contact us regarding any specific enquires</p> <br></br> </div> <div class="midcol"> <img src="img/hp_joinerybox.jpg" width="205" height ="46" border="0"/><br><br> <p>Wood Tower pride themselves on their experience and workmanship. Look though previous work to see our superior quality for yourself.</p><br> <a href="projects.php">Joinery gallery </a><br></br> <a href="services.php">Services </a><br></br> </div> <div class="leftcol"> <img src="img/hp_constructionbox.jpg" width="205" height ="46" border="0"/><br><br> <a href="">Home </a><br></br> <a href="services.php">Construction </a><br></br> <a href="">Commerical properties </a><br></br> <a href="">Get an online quote </a><br></br> <br></br> </div> </section> </div> </div> <!--header file for all pages within the website (header.php)--> <div id="footer"> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="style/style.css"> <style TYPE="text/css"> div#footer ul{ margin:0px; padding:5px; list-style:none; } div#footer li{ width:155px; display:inline-block; font:18px; font-family:'Droid Sans', sans-serif; font-weight:bold; } #footer_social{ position:relative; } #footer_social_buttons{ position:absolute; top:-64px; left:142px; } a.grey_text { font: 14px; font-family: bold 'Droid Sans', sans-serif; color: grey; } a.grey_text:hover{ font: 14px; font-family: 'Droid Sans', sans-serif; text-decoration:underline; color: #4E78A0; } #footer { position:relative; margin-top:20px; } </style> </head> <body> <div id="footer"> <ul> <li><a class="grey_text" href="index.php">HOME</a></li> <li><a class="grey_text" href="aboutus.php">ABOUT US</a></li> <li><a class="grey_text" href="ourwork.php">PROJECTS</a></li> <li><a class="grey_text" href="blog.php">SERVICES</a></li> <li><a class="grey_text" href="products.php">TEAM</a></li> <li><a class="grey_text" href="products.php">CONTACT</a></li> </ul> </div> <div id="footer_social"> <div id="footer_social_buttons"> </div> </div> </body> <p>© Wood Tower Limited 2012 </p> </html> </div> </body> </html> you have more than 1 doctype you have </html> then you have more html after
September 17, 201214 yr what have you got going on in here <!--header file for all pages within the website (header.php)--> <?php include ("header.php") ?>
September 17, 201214 yr you need to work your way through these errors http://validator.w3.org/check?uri=http%3A%2F%2Fnurdit.com%2Fwoodtower&charset=%28detect+automatically%29&doctype=Inline&group=0
September 17, 201214 yr Author ok so iv created a blank web page with two separate style sheets and it works by changing the background colors. so something is over riding it but am unsure what it is
September 17, 201214 yr ok so iv created a blank web page with two separate style sheets and it works by changing the background colors. so something is over riding it but am unsure what it is From the time you posted this i would say you have missed my last few posts you need to validate your html and remove all the unnecessary markup
September 17, 201214 yr Author inside header.php is <!doctype html> <html lang="en"> <head> <meta charset="utf-8"/> <link rel="shortcut icon" href="favicon.ico" /> <link rel="stylesheet" href="style/style.css" /> <!--[if lt IE 9]> <link rel="stylesheet" href="style/iestyle.css" type="text/css" /> <![endif]--> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> <style TYPE="text/css"> #nav { position:absolute; width: 560px; right:230px; top: 45px; list-style: none; } #nav li { float: left; list-style: none; } #nav li a { display: block; padding: 8px 15px; text-decoration: none; font-weight: normal; font-size: 16px; font-family: 'Droid Sans', sans-serif; color:#4E78A0; border-right: 1px solid #d7d7d7; } #nav li a:hover { color: #38B0DE; background-color: #fff; } #telephone{ position:absolute; right:10px; padding:5px; } </style> </head> <body> <div id="top_header"> <div id="top-header-sub"> <div id="logo_woodtower"> <a href="index.php"><img src="img/woodtower.jpg" border="0" /></a> </div> <div id="telephone"> <p>Tel: +44(0)208 443 1234</p> </div> <ul id="nav"> <li><a href="aboutus.php">ABOUT US</a></li> <li><a href="projects.php">PROJECTS</a></li> <li><a href="services.php">SERVICES</a></li> <li><a href="team.php">TEAM</a></li> <li><a href="contact.php">CONTACT</a></li> </ul> </div> </div> </body> </html>
September 17, 201214 yr so look what your doing <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Home-Wood Tower</title> <link rel="stylesheet" href="style/style.css"> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="style/ie8-and-down.css" /> <![endif]--> <link rel="stylesheet" href="./themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="./nivo-slider.css" type="text/css" media="screen" /> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> </head> <body> <div id="big_wrapper"> <!--header file for all pages within the website (header.php)--> <?php include ("header.php") ?> With PHP adding all that html that you posted in your last post what happens if you remove <!--header file for all pages within the website (header.php)--> <?php include ("header.php") ?>
September 17, 201214 yr Author i fixed it. there was an overriding style sheet in footer.php, which iv removed and left all style sheets called in index.php
September 17, 201214 yr i fixed it. there was an overriding style sheet in footer.php, which iv removed and left all style sheets called in index.php Dont get to excited you still have </html> 3 times </body> 3 times </head> 3 times never crossed my mind to look for an overriding style sheet in the footer
Create an account or sign in to comment