Webdesign Glossary - CSS

CSS (Cascading Style Sheets) is a "language" specifically used for styling the markup in other documents, most commonly used on the web for adding the layout and graphic design details to web pages written in HTML or XHTML.

One big advantage to using CSS is that you can have all your layouting in a CSS file, and only the content along with the markup code in the main HTML files. This is a very flexible concept that allows for quick and easy updates to the look of the pages, or even complete redesigns of the whole web site.

An example of how to define some HTML elements in a CSS file:

body{
  background-color: #ffffff;
  padding: 10px;
}

h1{
  font-family: Arial, Verdana;
  font-weight: bold;
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 30px;
  color: #000000;
}

p{
  font-family: Verdana, Arial;
  font-size: 12px;
  line-height: 17px;
  color: #cccccc;
}

If you want to learn the basics of CSS - check out my CSS tutorial.





Back to the Web Glossary index
www.eagleowl.se      Phone: 026-16 13 61      E-mail: robert@eagleowl.se
All content ©2012 EagleOwl