Tutorial - (X)HTML/CSS - HTML + CSS


Coding Friends Tutorial Index - > (X)HTML/CSS

Author Ian - Tutorial Posts = 62
An Cascading Style Sheet (CSS) is basically styles of a page within a block of text. The cascading part means that the last value for a set style will be the value taken, e.g. if at the top of a style sheet there is a value of black for the back ground colour and then white is below that, the white value will take precedence over the black.

Here is a example of styling within the tag body.
---
<html>
       <title>Background colour</title>
       <body bgcolor="#BCBCBC">
              hi world
       </body>
</html
---
And this is an example with CSS within the html code.
---
<html>
       <title>Background colour with css</title>
       <style type="text/css">
              body
              {
                     background : #DCDCDC;       
              }
       </style>
       <body>
              Hi World
       </body>
</html>
---
There are many styles options within the html styling list, hopefully shall cover most of these in the future.
Creation of cool tutorials :)
User Name Password
Copyright@CodingFriends, 2005-2006. All Rights Reserved.
Home | Forums | Tutorials | Users
RSS Feeds - Global Global CodingFriends RSS Feed - Tutorials Tutorials CodingFriends RSS Feed - Forums Forums CodingFriends RSS Feed - News News CodingFriends RSS Feed
Users
Login|Password problem| Register here

Tutorials
Tutorials Home| C/C++| C#/Mono| Java| Javascript| PHP| Ruby| SQL| (X)HTML/CSS| VB| Linux| Windows

Forum
Forum Home

Projects
3D Game

Site
Home| About me| Links| FAQ

Search