CSS Quick Syntax Reference
()
About this ebook
The CSS Quick Syntax Reference is a 150-page syntax reference to the Cascading Style Sheet specification and style sheet language. It presents the essentials of CSS in a well-organized format that can be used as a handy reference.
You won’t find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a CSS reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any CSS programmer or Web developer.
In the CSS Quick Syntax Reference, you will find:
- A concise reference to CSS
- Short, simple, and focused code examples for presentation semantics
- A well laid out table of contents and a comprehensive index allowing easy review
Mikael Olsson
Mikael Olsson is a professional programmer, author and web entrepreneur. He enjoys teaching, writing books and making sites that summarize various fields of interest. The books he writes are focused on teaching their subject in the most efficient way possible, by explaining only what is relevant and practical without any unnecessary repetition or theory. He can be reached online at Siforia.com.
Read more from Mikael Olsson
Handbook of Success: How to Make your Life What you Want it to Be Rating: 5 out of 5 stars5/5C++17 Quick Syntax Reference: A Pocket Guide to the Language, APIs and Library Rating: 0 out of 5 stars0 ratingsJava Quick Syntax Reference Rating: 0 out of 5 stars0 ratingsJava 17 Quick Syntax Reference: A Pocket Guide to the Java SE Language, APIs, and Library Rating: 0 out of 5 stars0 ratingsCSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language Rating: 0 out of 5 stars0 ratingsC++20 Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library Rating: 0 out of 5 stars0 ratingsModern C Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library Rating: 0 out of 5 stars0 ratingsPHP 8 Quick Scripting Reference: A Pocket Guide to PHP Web Scripting Rating: 0 out of 5 stars0 ratingsC# 7 Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library Rating: 0 out of 5 stars0 ratingsC# 8 Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library Rating: 0 out of 5 stars0 ratings
Related to CSS Quick Syntax Reference
Related ebooks
Pro TypeScript: Application-Scale JavaScript Development Rating: 4 out of 5 stars4/5Using Microsoft Word - 2023 Edition: The Step-by-step Guide to Using Microsoft Word Rating: 0 out of 5 stars0 ratingsHTML& CSS for Beginners: Learn the Fundamentals of Computer Programming Rating: 0 out of 5 stars0 ratingsPatterns for Parallel Software Design Rating: 0 out of 5 stars0 ratingsHL7 for BizTalk Rating: 0 out of 5 stars0 ratingsUnderstanding Google Sheets - 2021 Edition: The Step-by-step Guide to Understanding the Fundamentals of Google Sheets Rating: 0 out of 5 stars0 ratingsBeginning Web Programming with HTML, XHTML, and CSS Rating: 0 out of 5 stars0 ratingsSecurity Patterns in Practice: Designing Secure Architectures Using Software Patterns Rating: 3 out of 5 stars3/5Visual Studio Condensed: For Visual Studio 2013 Express, Professional, Premium and Ultimate Editions Rating: 0 out of 5 stars0 ratingsCSS Master Rating: 0 out of 5 stars0 ratingsPractical ASP.NET Web API Rating: 0 out of 5 stars0 ratingsCSS3 Foundations Rating: 4 out of 5 stars4/5Responsive Web Design with HTML5 and CSS3 Rating: 4 out of 5 stars4/5Microsoft Azure Storage Essentials Rating: 0 out of 5 stars0 ratingsHigh Impact Data Visualization with Power View, Power Map, and Power BI Rating: 0 out of 5 stars0 ratingsImplementing Azure Solutions Rating: 0 out of 5 stars0 ratingsLearning Material Design Rating: 4 out of 5 stars4/5Mastering HTML and CSS for Modern Development Rating: 0 out of 5 stars0 ratingsPro SQL Server Internals Rating: 0 out of 5 stars0 ratingsPractical Oracle JET: Developing Enterprise Applications in JavaScript Rating: 0 out of 5 stars0 ratingsSignalR Blueprints Rating: 0 out of 5 stars0 ratingsBuilding Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services Rating: 0 out of 5 stars0 ratingsHTML5 & CSS3 For Beginners: Your Guide To Easily Learn HTML5 & CSS3 Programming in 7 Days Rating: 4 out of 5 stars4/5Less Web Development Essentials Rating: 0 out of 5 stars0 ratingsResponsive Media in HTML5 Rating: 0 out of 5 stars0 ratingsProfessional ASP.NET Design Patterns Rating: 4 out of 5 stars4/5The Essential Guide to HTML5: Using Games to Learn HTML5 and JavaScript Rating: 0 out of 5 stars0 ratingsXSLT 2.0 and XPath 2.0 Programmer's Reference Rating: 4 out of 5 stars4/5Elasticsearch Indexing Rating: 0 out of 5 stars0 ratingsSymfony2 Essentials Rating: 0 out of 5 stars0 ratings
Internet & Web For You
More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsHow To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsThe Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5SEO For Dummies Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsNo Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5
Reviews for CSS Quick Syntax Reference
0 ratings0 reviews
Book preview
CSS Quick Syntax Reference - Mikael Olsson
© Mikael Olsson 2014
Mikael OlssonCSS Quick Syntax Reference Guide10.1007/978-1-4302-6491-0_1
1. Using CSS
Mikael Olsson¹
(1)
Hammarland, Finland
There are three ways to insert CSS into an HTML document: by using an internal style sheet, inline styles, or an external style sheet. An internal style sheet applies to a single page, an inline style to a single element, and an external style sheet to potentially an entire web site.
Internal style sheet
An internal style sheet is useful when a single document needs to have its own unique styling. The style sheet is then embedded within the section of the web document using the
p { color: red; }
Inline style
Stylingcan be assigned to an individual element by using the style attribute to set an inline style. It is a generic attribute that can be included in any HTML start tag, and its value is the CSS declarations that will be applied to the element, separated by semicolons. There is no need to specify a selector because the declarations implicitly belong to the current element.
color: green>Green text
This approach should be used sparingly because it mixes style with content and therefore makes future changes more cumbersome. It can be useful as a quick way to test styles before they are moved out to an external style sheet.
External style sheet
The most common way to include CSS is through an external style sheet. The style sheet rules are placed in a separate text file with a .css file extension. This style sheet is then referenced using the element in the web page header. The rel (relationship) attribute must be set to stylesheet
and the meta type attribute can optionally be set to text/css
. The location of the style sheet is specified with the href attribute.
stylesheet type=text/css
href=MyStyle.css
>
Another less common way to include an external style sheet is to use the CSS @import function from inside of the