PHP tutorials, html tutorial, photoshop tutorial, ajax tutorials,java tutorial, web design tips tutorials, css tutorial, visual basic tutorial, dreamweaver tutorial, php tutorial, html tutorials, c++ tutorial, javascript tutorial, windows tutorials, free flash tutorials, free photoshop source codes, sql tutorial
Web Development Tutorials, Programming Tutorials, PHP Script Index
Home | Forums | Downloads | Books | Submit Content | Links

Programming Articles

  PHP articles
  MySql articles
  Visual Basic.Net articles
  Java articles
  ASP articles
  ASP.Net articles
  Visual Basic articles
  CSS articles

Programming Tutorials

  PHP tutorials
  MySql tutorials
  Visual Basic.Net tutorials
  Java tutorials
  ASP tutorials
  ASP.Net tutorials
  Visual Basic tutorials
  HTML tutorials
  CSS tutorials

Programming Source Codes

  PHP scripts
  Visual Basic.Net scripts
  JavaScript scripts
  ASP scripts
  ASP.Net scripts
  Visual Basic scripts

Our Partners

  Free Resources
  Publisherbank
  Free Link Directory
  PHP Magazine
  Webmaster Passion
  Search Engine Bank
  Free Directory Site
  Free PHP Scripts
  Links Shopping Mart
  Variety Bazar
  Urdu Office Tutorials
  Evernew Scripts
  Evernew Scripts
  Evernew Directory
  Our Achievements
  Web templates
  Buy and Sell Templates
  Text Link Traders
  Directory Metro
  Gifts Choice
  Valentines Ecards
  Template Directory

Introduction to CSS

Date:2006-03-27

Introduction
CSS stands for Cascading Style Sheets, it is a simple and powerful language which allows you to specify styles, attributes, and positioning of HTML objects in HTML file. Using Cascading Stylesheets you can control control the layout of your page to look almost exactly as wanted.

Syntax of CSS

CSS contains three major parts:
1)selector
2)property
3) value:

The selector is an HTML element or tag that you define for different styles, the property is the attribute you wish to change, and each property can take a value. The property and value are surrounded by curly braces and separated by a colon:

CSS looks like:

selector {property:value;}

If the value has multiple words, put quotes around the value

Styles are defined between <style type="text/css"></style> tag.

The syntax is below:

<HTML>
<HEAD>
<style type="text/css">

p{
text-align:center;
font-weight:bold;
color:red
}

body{
background-color:red;
}

</style>  
</HEAD>
<BODY>
<P>This is paragraph</P>
</BODY>
</HTML> 

CSS Comments

Comments are use to ignore any line by the browser. You can insert comments into CSS to explain your code, which can help you when you edit the source code at a later date. A CSS comment begins with "/*", and ends with "*/", like this:
/* This is a comment */
p
{
text-align: center;
/* This is another comment */
color: black;
font-family: arial
}



Desclaimer | Privacy Policy | Submit Content | Links | Link to Us | Sitemap |Contact Us
Copyright Programming Tutorials, Web Development Tutorials, Source codes © All Rights are Reserved.
Powered By Evernew Solutions

Loans - Flights - Loans - Credit Cards