Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 18th, 2006, 02:17 PM
Friend of Wrox
 
Join Date: Apr 2005
Location: Fort Walton Beach, FL, USA.
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



  #2 (permalink)  
Old April 18th, 2006, 02:26 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.