Results 1 to 3 of 3
Thread: LogicWeb CSS
Mar 12, 2008, 16:29 #1
I'm trying to correct some W3C validation errors found at www.logicweb.com
I'm not a designer by trade, but I learn quickly and would appreciate help on this.
The code used for the view packages button is below, and the one that caused W3C errors
<div id="view_packages"> <h4><a class="view_packages_button" href="/services/hosting.php" >View Packages</a></h4> </div>
Line 283, Column 10: ID "view_packages" already defined.
Regardless, the button works both hovering (color change) and link works. If I change ID to class, I end up see the text over the button, and the hover color change becomes ineffective.
If I remove the text, it goes away yet hover still does not work at all.
Using below doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Thanks in advance.
Mar 12, 2008, 22:26 #2
- Join Date
- May 2006
- Aurora, Illinois
- 0 Post(s)
- 0 Thread(s)
What it's saying is that you've declared the ID elsewhere on that page. ID values can be used only once. If you want to use view_packages more than once, you have to change it to a class.
(Also note that H4 is a heading, which according to the W3C specification is used to briefly describe the content that follows after it; using it on a menu item is therefore not a good idea.)Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Mar 12, 2008, 22:28 #3