October 2, 201016 yr I added a search to my front page and it looks good on Firefox even IE but the problem lies with "Google Chrome". Two of the search bars are appearing and I don't know how to delete it. Here is my Header.php code. </head> <body> <div id="topbar"> </div> </div> <ul class="rss"> <a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe To Our Posts RSS Feed"> <img src="<?php bloginfo('template_directory'); ?>/images/rss1.png" style="border-style: none" alt="RSS Feeds"/></a> </ul> <ul class="twitter"> <a href="http://www.twitter.com/" title="Twitter"> <img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" style="border-style: none" alt="Twitter"/></a> </ul> <ul class="facebook"> <a href="http://www.facebook.com/" title="Facebook"> <img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" style="border-style: none" alt="Facebook"/></a> </ul> <ul class="youtube"> <a href="http://www.youtube.com/" title="YouTube"> <img src="<?php bloginfo('template_directory'); ?>/images/youtube.png" style="border-style: none" alt="YouTube"/></a> </ul> </div> <div class="textInput"> <input type="text" name="field" class="textInput" /> </div> </div> <div id="header"><br> <ul id="awesome-menu"> <li><a href="#home" class="home">Home</a></li> <li><a href="#about" class="about">About</a></li> <li><a href="#portfolio" class="portfolio">Portfolio</a></li> <li><a href="#services" class="services">Services</a></li> <li><a href="#faq" class="faq">FAQ</a></li> <li><a href="#contact-us" class="contact-us">Contact Us</a></li> </ul> </div> </body> <div id="container"> <div id="menu"> <ul> <?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?> </ul> </div> Here is my CSS Code: .textInput { border: none; background: #f4f0e2; color: #95916e; font-size: 12px;; width:200px; height:21px; float:right; margin:107px -124px 0px 6px; }
October 5, 201016 yr Hi, from the body down there are a lot of problems, closing div at the top with no opening div, missing li within the ul's at the top not self closing on the br tags and a closing body tag in the middle of your code. I think before you worry about consistency you need to fix all the problems you have. You might find that solves your problem, Firefox does seem to just ride over the bumps in html, most of the time, safari less so. I'm not trying to teach you how to suck eggs but try pasting your code in to a validator: http://validator.w3.org/#validate_by_input
Create an account or sign in to comment