<<Back to Article

Embedded Stylesheet

/skill level/
/viewed/
0 Times

Introduction

This is a simple example of an embedded stylesheet. This code goes into the <head> of your HTML document.

Code and Explanation

<style type="text/css">
   body {
        text-align:center; 
	height:100%;
	font-size:62.5%; 
	font-family: Helvetica, arial, sans-serif;
	color: #000;
        background: #eceae1 url(/images/bg_body.png) repeat-x 0 0;
	margin: 0;
	padding: 0; 
        }
 
  a { 
       color:#007CA5; 
       text-decoration:none; 
       outline: none;
      }
   a:visited { color:#666; } 
   a:active  { color:#999; } 

   img       { border: 0px; }

   h1, .h1 { font-size: 2.4em;}
   h2, .h2 { font-size: 2em;} /* article headline 20pt */
   h3, .h3 { font-size: 1.8em;} /*  should be 18pt */

</style>

<img src="shyra01.jpg"><a href="http://www.youtube.com/jjfuau456">

  • This page was last modified 16:50, 17 November 2008.
Edit this article
Reddit Digg