bethrobson / head-first-html Goto Github PK
View Code? Open in Web Editor NEWCode for the 2nd edition of Head First HTML and CSS
Code for the 2nd edition of Head First HTML and CSS
Code for 2nd edition of Head First HTML and CSS by Elisabeth Robson and Eric T. Freeman Publish date: August 20, 2012
In chapter 8, page 325, the code doesn't seem to work.
@font-face {
font-family: "Emblema One";
src: url("http://wickedlysmart.com/hfhtmlcss/chapter8/journal/EmblemaOne-Regular.woff"),
url("http://wickedlysmart.com/hfhtmlcss/chapter8/journal/EmblemaOne-Regular.ttf");
}
but altering it to this, does.
@font-face {
font-family: "Emblema One";
src: url("EmblemaOne-Regular.woff") format("woff");
}
Hello everyone!
In Chapter 14, we've got two stylesheets linked to the html code. But at the same time, these css codes have the rules that are meant to stylize elements that are not mentioned in the html. Could you explain me please, how it works? Does it mean that these ccs stylize the elements only included by the html code and the rest is ignored?
One more question: the html does not have "type="text/css"", but the style works perfectly. So we do not have to always use "type="text/css"" to sylize an html?
https://github.com/bethrobson/Head-First-HTML/blob/master/chapter14/starbuzz/styledform.html
Hello everyone!
I finished Chapter 12 of HeadFirst HTML/CSS. Everything is clear except one minor thing.
The selected area goes beyond the navigation bar. How to make the selected area fit exactly the navigation bar? Please, could you help me?
Have a nice day! Many thanks in advance!
Here's the CSS code for the selected area:
nav ul li.selected {
background-color: #c8b99c;
}
in chapter14 browser can't find http://starbuzzcoffee.com/processorder.php
Hello everyone!
When I use nth-child, it does not work as I expected. I set the (odd) or (2n+1) value of the attribute for background color, but instead of colouring an odd row, it affects cells that make part of the even row (The Truth or Consequences row).
Here is the code:
tr:nth-child(odd) {
background-color: #fcba7a;
}
Here is the problem that I’m writing about:
Could you help me, please?
Should I use classes instead nth-child()?
P.S. This table comes from the Chapter 13 of Headfirt HTML and CSS.
when I press 'order now' button, the response is always the same as no data submitted
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.