Cascading Style Sheets ebook

Cascading Style Sheets should be a core skill for Web developers, you need to know how to style HTML: create background tile and CSS frames effects and apply text decoration and text transform techqniques.

This ebook builds on CSS guidelines for semantic markup, explores the nature of the cascade and covers the HTML style attribute, use of ID and class selectors and more advanced CSS tips and techniques.

What if you were One Percent Better with Cascading Style Sheets?

  • You mix and match style rules with a clarity you never had
  • You get the meaning of semantic markup, now its your friend
  • You insert style rules in the cascade with surgical precision
  • You stop wasted efforts to hide CSS and share with your peers
  • You transform legacy sites with the light touch

Cascading Style Sheets FAQ

Cascading Style Sheets FAQ ebook by Philip Shaw

ISBN
EPUB: 978-1-907863-12-7
Mobi: 978-1-907863-25-7

Style HTML with CSS, tips and techniques to tile background images, create CSS frames effects and transform text. Covers CSS syntax, the cascade, ID and class selectors with methods to combine and override styles.

» More about the CSS ebook below

Buy now

Mobi for Amazon Kindle

EPUB for Apple iPad, Sony Reader, Nook

What's inside the Cascading Style Sheets ebook?

We keep standard publishing blurb to a minimum and put it at the back. The book starts with a brief introduction, then straight into:

  • 21 core Cascading Style Sheets questions and answers
  • 12 extra CSS answers from other FAQs
  • Links for online updates

You get updates to this edition free by email.

Cascading Style Sheets ebook contents

The Cascading Style Sheets FAQ ebook helps you solve problems like these.

Getting started with CSS

What are your general guidelines about CSS?
Your CSS doesn't work; take your first steps towards more robust CSS.
What is “presentational markup”?
Think HTML is all about presentation? Think again, learn about semantic markup.
What are logical and physical tags?
Markup jargon can confuse, these notes on logical and physical markup will help.

CSS techniques

Has the stylesheet loaded?
You hit reload and your CSS doesn't show, this tip tells how to debug style sheet links.
How can I hide my CSS?
Be pragmatic about CSS, not precious, you can't stop others copying your code.
Can I resize a whole site with CSS?
You have a legacy site that needs an update, the power of CSS can separate style from markup.
Can I use script variables in my CSS?
If your CSS variables are drawing a blank, you may need to give Web browsers a heads-up on the CSS content type.
How can I block overrides from another stylesheet?
Multiple style sheets can block style changes and mess up your layout. The cascade principle will help you override style sheet problems on your terms.
How can I set the width of a div for any monitor?
When you set pixel widths and your page doesn't fill the screen, resize with CSS proportional lengths.

CSS styling tips

How do I set the background colour in CSS?
These pointers on CSS background colour syntax will fix your broken backgrounds.
How do I style list elements?
If your list item fonts are too small, see how to target CSS rules for lists.
How do I make the text fit alongside an image bar?
Learn how to tile background images with text.
Is it possible to create a frames effect with CSS?
Want fixed navigation on a scrolling page, or a scrolling area in a standard page? CSS has the solution.
Can I scale background images to different screen resolutions?
Get your background images to fill the screen top to bottom with CSS background layouts.
How can I change text to lower case in CSS?
You have a legacy site to rework quick, transform text to lower case with CSS.
How can I style browser window components?
When you want the browser chrome to match your site design, you need to understand where Web standards end and proprietary window styles begin.

CSS syntax and markup

How can I combine a style rule with HTML code?
Need a quick style fix for your HTML but don't know the syntax? There's an HTML attribute just the job.
How can I combine style rules with each other?
When you copy CSS declarations from one rule to another point, it points to a merger; combine CSS rules through HTML.
How do I remove underlines from links in my pop-ups?
Javascript generated content is complex enough, manage CSS separately with an external style sheet.
What does the selector #content do?
View source and make sense of CSS ID selectors and class selectors.
What is .rolloverfordnd for?
Lots of ID selectors with similar styles? You could make better use of CSS class selectors.

Extra Cascading Style Sheets questions

This ebook includes 12 extra Cascading Style Sheets answers from 8 other FAQs.

  • What is DHTML?
  • How can I change the default link colour?
  • How do I access a CSS file using Javascript?
  • How do I make a "skip navigation" link?
  • How can I make CSS font-size the same as HTML <font>?
  • Can CSS support Java applets?
  • How do I include CSS in my servlet?
  • How should I design a GUI for a Javascript app?
  • Can we edit the print background property with Javascript?
  • Why is it necessary to test my page in different Web browsers?
  • Can I purge all cached copies of my old stylesheet?
  • Can I force a stylesheet to be reloaded?

Any more questions?

Please contact us about the Cascading Style Sheets FAQ ebook.

One Percent Better ebook stockists

One Percent Better ebooks are stocked at Amazon in Mobi format for the Kindle, the Apple iBookstore and Google eBookstore in EPUB format.

Kindle editions at Amazon

One Percent Better ebooks are distributed through Amazon for direct download to your Kindle.

iPad ebooks at the iBookstore

One Percent Better ebooks are also distributed through the Apple iBookstore for direct download to your iPad.

EPUB editions at the Google eBookstore

One Percent Better ebooks are distributed through the Google eBookstore in EPUB format. Search for “Cascading Style Sheets FAQ”.

 

Ebooks for Web developers

More titles coming soon, contact us for news.