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 July 21st, 2006, 09:20 AM
Bo Bo is offline
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bo
Default Ch 2 example 2-5 question

Hi Richard:
I have just started working from your book "Beginning CSS for Web Design" and kutos to you. Nice job, easy to read and understand concepts about CSS thus far. That said, I am running across a problem with example 2-4 and 2-5. For some reason, not sure yet, I am not seeing the border around the table in example 2-5. When I remove the declaration from the beginning of the file (just like in example 2-4), my border is there. I am using IE 6, Windows XP Pro, SP2 and have all patches loaded, if that that makes any difference. I have also attached my code, which I copied directly out of your book.

Any ideas???

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EM"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
    <head>
    <title>DocType Sniffing</title>

    <style type='text/css' media='all'>

        table { margin: auto; }
        td { background: green;
             margin: 10%;
             border: 5ps solid yellow;
             padding: 10%;
             width: 100%;
             color: black;
             font-size: 200%;
             text-align: center; }

        div { background: green;
              border: 5px solid yellow;
              font-size: 200%;
              padding: 1%; }

        #div1 { float: left;
            width: 30% }

        #div2 { margin-left: 34%;
            width: auto; }

        </style>
    </head>

    <body>

    <table>
         <tr>
        <td>Some Content</td>
           </tr>
    </table>

    <div id='div1'>This division smells funny</div>
    <div id='div2'>This division has a <em>strange</em> and
    rather pleasing odor about it.</div>

</br>

<p>I have tried several different DTD's with this example and the

results was the same in every case. Changing the declaration three

different ways didn't seem to have any effect on the results. What I do

not understand, is why there is no black (yellow) border around the

table?</p>
</br>
<p>When the declarations are removed from the beginning of the file, my

border returns and all is well.</p>
</br>
<p>In this example I am using IE 6.</p>


    </body>
</html>
 
Old July 24th, 2006, 08:07 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You've got a typo on this line:

border: 5ps solid yellow;

It should be:

border: 5px solid yellow;

Hope This Helps!

Regards,
Rich

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

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old August 15th, 2006, 09:17 PM
Bo Bo is offline
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Bo
Default

Guess I should always recheck my typing before leaping off the bridge, in a manner of speaking. Anyway, thank you. It's always nice to have a second pair of eyes looking over your shoulder.
 
Old August 16th, 2006, 07:44 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

It's no problem, happens to all of us. ;)


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
Ch. 11 Email setup question amenne20 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 1st, 2006 04:04 PM
Ch. 11 Email setup question amenne20 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 1st, 2006 04:03 PM
new ch. 6 question Dennis Mollet BOOK: Beginning VB.NET Databases 2 August 16th, 2005 05:27 PM
CH 3 pg 96 Question mririe BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 8 August 25th, 2004 04:17 AM





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