Css problem - chapter 7 -book "build your own website the right way" ian lloyd

Good day good people !

I am a newbie. Recently bought the aforementioned book by Ian LLoyd. Really enjoying it but I am stuck with chapter 7 (building the form). Here’s my issue:

After creating the form on Freedback website and copying values from Freedback markup into form section of contact page markup, CSS formatting (from external CSS file) relating to the form stopped working.

Anyone who used this book as a beginner…?

Thank you

I was able to figure it out -please, disregard my last post.

You should post what the problem ended up being, though… you think you’re the only one who made a (sillyin retrospect) mistake? Likely a few other people who ran into the same problem would want to read how you fixed it, no matter how silly a typo it ended up being or whatever : )

My first typo took me days to figure out when I went through Lloyd’s book (I didn’t know about the validator back then). Instead of id=“someid” I had id-“someid” and I just didn’t see it… and couldn’t figure out why my styles weren’t working : )

thanks for your advice,Stomme poes. Here’s the issue:

contact.html markup on page 300-301 missing attribute class=“contact” which was first mentioned on page 270.

Final markup that worked for me is as follows:

<form enctype=“multipart/form-data” method=“post” class=“contact”
action=“http://www.freedback.com/mail.php” accept-charset=“UTF-8”>

Ah, you should see if that’s been reported on the errata page posted near the beginning of the book (errors after print). If you’re using the new second edition, possibly someone hasn’t reported it yet (so you could).

This is definitely something someone else would miss, so great that you posted it! It’s the book’s fault here.

Even when it’s an O’Reilly book, I usually go through the errata page online and write in my new book, before actually reading it.

I have the 2nd edition of that book and he’s right, that piece of code is missing. Thanks! I didn’t run into that issue as I just read how to write the code and then wrote my own code and since I have multiple forms on 1 site, I couldn’t use the freedback form processor. But that was a great catch!

Can you expand a little bit on:

“I usually go through the errata page online and write in my new book, before actually reading it.”

Thanks,Stomme poes.

I never did it before.

you are welcome,teaching-myself.

Arg, I don’t happen to have a SP book sitting on my desk, but for instance I got the O’Reilly book “Mastering Regular Expressions” by Jeffrey Freidl.

Near the beginning, on pre-page xxiii, there’s a section called Links, Errata and Contacts, where he gives a url you can visit to see if any errors after-print have been reported. So first thing I did was go through the book and there were about 5 errors that were things like typos and a few code errors, and I wrote in the corrections. Now when I read the book, and go through the examples, I know the “correction”.

SitePoint books also have an errata page, and while I don’t know the url off the top of my head, you’ll see somewhere near the very beginning of the book (either right before or right after the table of contents) a link to an errata page.

There you will see errors others have reported (so you can check you copy against any others too) and if you don’t see the one you found, you can send in a report yourself (I think it’s filling in a form online but I forget… it’s been a while since I’ve done it).

thanks a lot,Stomme poes. I appreciate your help. Will keep that in mind.