Wrox Programmer Forums
|
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2006, 02:17 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default <link> statement - compile failure to see bug

If you use separate css' for each webpage, you'll need a <link> statement for each.
(See book page 50.) There is nothing wrong at all with the book in this regard.

But, be aware, if you accidentally insert a comma in a link statement, it's presence will
*not* be brought to your attention. I spent half a day comparing absolutely identical webpages, code, design, css, everything, until I spotted the comma.

In my case, the effect of the comma was to ignore everything in the link statment that followed it. This meant a simple 1 pixel border was not drawn at run time. Just to make it particularly nasty, the border WAS drawn at design time, just wasn't there at run time. Arggggggh!!!!!

VV



 
Old April 18th, 2006, 02:26 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Yep, been bitten by that a few times myself. A developer is only as good as his debugging tools!

You can use Mozilla Firefox to check your CSS, go to Tools -> JavaScript Console, it will report CSS errors there in addition to JavaScript errors (Firefox 1.5 or >).

There are also W3C validation tools that will report errors in markup, http://validator.w3.org/

There are also development tools that exist for various browsers that will submit your markup and/or CSS for validation for you.

For IE, there is the Internet Explorer Developer Toolbar
http://www.microsoft.com/downloads/d...displaylang=en

For Firefox there is the Web Developer extension
https://addons.mozilla.org/extension...info.php?id=60

HTH!

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
setting combox box value to href in <link> bhairraju CSS Cascading Style Sheets 2 March 23rd, 2007 01:58 PM
how to get all <link> objects? nerssi Javascript How-To 2 January 27th, 2007 03:54 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
return to value in <SELECT> statement mikeuk Beginning PHP 3 September 25th, 2004 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.