Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-12-2008, 07:29 PM LogicWeb CSS
Average Talker

Posts: 17
Trades: 0
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

Code:
    <div id="view_packages">
        <h4><a class="view_packages_button" href="/services/hosting.php" >View Packages</a></h4>
    </div>
W3C Error
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.
Attached Images
File Type: gif 1.gif (3.0 KB, 0 views)
__________________

Please login or register to view this content. Registration is FREE
[ Over 100 Fulfilled Prophecies in the Bible:
Please login or register to view this content. Registration is FREE
]
.................................................. ...................................

Please login or register to view this content. Registration is FREE
[ hosting for personal and business since 2003 ]
LogicWeb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-12-2008, 09:45 PM Re: LogicWeb CSS
Webmaster Talker

Posts: 626
Trades: 0
If you are going to use the ID more than once in a page, you need to declare it as a class instead of an ID. ID's are used to reference specific elements where classes are used to references any/all elements that have that class assigned to them.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 03-12-2008, 10:26 PM Re: LogicWeb CSS
Average Talker

Posts: 17
Trades: 0
Thanks for your help. I have changed it to class and within the css sheet changed # to . instead.

Thanks again.
__________________

Please login or register to view this content. Registration is FREE
[ Over 100 Fulfilled Prophecies in the Bible:
Please login or register to view this content. Registration is FREE
]
.................................................. ...................................

Please login or register to view this content. Registration is FREE
[ hosting for personal and business since 2003 ]
LogicWeb is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to LogicWeb CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19230 seconds with 13 queries