Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 July 21st, 2006, 09:20 AM
Bo Bo is offline
Registered User
 
Join Date: Jul 2006
Location: Nashua, NH, USA.
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>
  #2 (permalink)  
Old July 24th, 2006, 08:07 AM
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

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
  #3 (permalink)  
Old August 15th, 2006, 09:17 PM
Bo Bo is offline
Registered User
 
Join Date: Jul 2006
Location: Nashua, NH, USA.
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.
  #4 (permalink)  
Old August 16th, 2006, 07:44 AM
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

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
 


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
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



All times are GMT -4. The time now is 06:30 PM.


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