Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design, 2nd Edition by Richard York; ISBN: 9780470096970
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2008, 01:47 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch 8 Float XHTML

I've gone through Ch 8 and I'm wondering why the XHTML doesn't validate? I've check my input to the book and have copied/pasted the code provided. Did I miss something? Sorry, I should be a little more specific. (8-1b, 8-3b, Ex. 8-1, the files that seem to start with the <img> tag???).

This is a great book regardless. You might want to work on those color screen shots thought.

Thanks...
Reply With Quote
  #2 (permalink)  
Old March 18th, 2008, 11:00 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 5 Times in 5 Posts
Default

Thanks, in the writing process where the code is edited and re-edited and copied and pasted and pasted and copied over and over again, sometimes no matter how much we may try to avoid them, there will be errors in the code.

And, I didn't run every single example through the W3C's validation service.

Just visually glancing at the content, it seems alright to me, what was the validation error?

Regards,
Rich

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

http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
  #3 (permalink)  
Old April 17th, 2008, 04:40 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the late reply. Don't get me wrong, the actual page displays properly in the browsers so, I just continued with the rest of the exercises and finished the book. Again, it really is a good book.

Here is the error message for both images, that I received when I validated the XHTML. (line 12 and line 13 are on my computer, and this is from your code only)



# Line 12, Column 51: document type does not allow element "img" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" start-tag.

        <img src='sun.png' alt='people' id='left' />

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "").


Thanks...[:-)



Reply With Quote
Reply


Thread Tools
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
float not working mister_mister CSS Cascading Style Sheets 1 March 11th, 2008 05:00 PM
Float precision nulogix C++ Programming 1 November 10th, 2005 08:53 PM
Covert CHAR to Float kuku SQL Server 2000 3 July 24th, 2005 06:02 PM
convert a column to float must Access 0 September 12th, 2003 07:35 AM
How to keep two digit after float number? Edward King Javascript 1 July 30th, 2003 01:12 AM



All times are GMT -4. The time now is 05:08 AM.


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