Learning to Design Web Pages with Style

Title: Eric Meyer on CSS: Mastering the Language of Web Design
Author: Eric Meyer
Publisher: New Riders
ISBN: 0-7357-1245-X
Price: $45.00 US, $69.99 CAN
Have you ever looked at the source code of a well-designed web page and were surprised to find only minimal HTML tags and a reference to a style sheet? That's the beauty of cascading style sheets (CSS)--simple, easy to maintain HTML code. A lot can be done with CSS. Many web designers have used CSS, but most don't take advantage of all it has to offer. In case you're not familiar with CSS, it's an aspect of web design for improving the look of a web page and for indexing the look of several web pages. It operates off of one document that lists text and other layout properties. With changes that are occurring in the web design world, knowing how to use CSS effectively is going to be necessary if you design web pages. If you don't believe it, consider the fact that <font> and some other formatting tags are being eliminated. “At this point in the game, it makes about as much sense to design without CSS as it does to write web pages without using HTML”, says Eric Meyer, Standards Evangelist for Netscape. Without CSS, you won't be able to change the appearance of text in your HTML documents.
Several good reference books have been written that can help you learn how to design web pages with CSS. However, being able to look up CSS properties and knowing how to apply them to make great-looking web pages is a very different matter. The difficulty lies in that CSS, in a sense, is a kind of artistic tool for web design. As such, acquiring skills in using CSS requires experimentation and, to make the process easier, the guidance of someone who is already talented in its use. To that end, Eric Meyer, who is also an Invited Expert of the Web Consortium's (www.w3.org) CSS working group, has written a new book in which he demonstrates how to design web pages with CSS. The book is called, Eric Meyer on CSS: Mastering the Language of Web Design. Before reviewing Meyer's new book, though, for those who are unfamiliar with CSS, let me explain it a bit and give a few examples. If you already know the basics of CSS, then skip over this next section.
Introduction to CSS
A style sheet is a list of instructions or rules for the web browser, so it knows how to display a particular web page. Without a style sheet, the browser will use its default settings for text and page layout. A style sheet can be located within a web page or it can be contained in a separate document and linked to from a web page. If a style sheet is located within a web page, then style rules are placed between opening and closing style tags (<style></style>). Styles and style tags must be placed inside the opening and closing header tags (<head></head>). They cannot, however, be placed within any other tags that might be located inside the header (e.g., <title></title>).
Within style tags, one can place style instructions that will be used throughout the web page. For instance, if you wanted all bold-faced text to be in red in addition to being bold, without a style sheet you would have to go through the HTML document and look for each instance of <b> and add a font tag after them like this, <font color=“red”> and a closing font tag (</font>) before the closing bold faced tags (</b>). Instead of doing all of that, you could simply add the following style sheet to the top of the web page:
<style>
b{color: red;}</style>
For consistency of style and to save time typing the style sheet into each web page, you can set up a separate style sheet document and link all of your web pages to it. Links to external style sheets read like this:
<link rel="stylesheet" type="text/css" href="main.css">
In this link, the name of the style sheet document is main.css, and it's located in the same directory as the web page that is linked to it. A directory path can be added to the href value if the style sheet is not in the same directory. Incidentally, it's customary to name style sheet files with an extension of “css”.
With an external style sheet, if you wanted to modify the color and some other font attributes of the main heading on all of the web pages linked to the style sheet, you could simply add this rule to your style sheet:
h1 {
text-size: 200%;
text-align: center;
color: navy;
}
In this example, all of the text enclosed in the <h1> heading tags in all of the web pages linked to this style sheet will be displayed double the size of the normal text, centered and in navy blue. As you can see, once a style sheet document is set up properly, one can easily make changes to all associated web pages simply by changing the style sheet. If your site has hundreds of web pages, it would take quite some time to implement any formatting changes. However, it would only take you seconds to make the changes with CSS.
There is a long list of style properties that one can set with CSS. If you'd like to learn more about the basics of CSS, you can go to the CSS section of the Web Consortium's site. A good reference book on CSS is one of Meyer's other books, Cascading Style Sheets: The Definitive Guide. It has become the staple of CSS designers, but I would suggest you consider buying Meyer's new book (reviewed below) as well.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- New Products
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Web & UI Developer (JavaScript & j Query)
- Designing Electronics with Linux
- Dynamic DNS—an Object Lesson in Problem Solving
- Using Salt Stack and Vagrant for Drupal Development
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Reply to comment | Linux Journal
4 hours 5 min ago - Reply to comment | Linux Journal
4 hours 21 min ago - Favorite (and easily brute-forced) pw's
6 hours 12 min ago - Have you tried Boxen? It's a
12 hours 4 min ago - seo services in india
16 hours 35 min ago - For KDE install kio-mtp
16 hours 36 min ago - Evernote is much more...
18 hours 36 min ago - Reply to comment | Linux Journal
1 day 3 hours ago - Dynamic DNS
1 day 3 hours ago - Reply to comment | Linux Journal
1 day 4 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



Comments
Very useful files search
Very useful files search engine. http://Indexoffiles.com is a search engine designed to search files in various file sharing and uploading sites.
Importance of CSS
I think is very important for all webmasters to made the switch to use CSS on their websites.
Re: Learning to Design Web Pages with Style
Erik Meyer is also the author of the CSS reference book, Cascading Style Sheets: The Definitive Guide published by O'Reilly, as well as Cascading Style Sheets 2.0 Programmer's Reference published by Osborne/McGraw-Hill. I haven't read the latter, but the O'Reilly book I use almost everyday. Could use a new edition, tho...
--scott trotter
Re: CSS: The Definitive Guide
I like Eric Meyer's O'Reilly book, CSS: The Definitive Guide, too. Even though it's still useful, you're right it does need updating. Eric told me that he is working on a second edition. He expects to have it finished by the end of the Summer. O'Reilly says they're planning on having it in the book stores by the end of this year. It will cover CSS 1 & 2 completely and will include an overview of CSS 3.