May 22, 2012, 10:48:50 AM
Pages: [1]   Go Down
  Send this topic  |  Print  
Share this topic on FacebookShare this topic on DiggShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter Topic: CSS Style Tags Explained  (Read 709 times)
0 Members and 1 Guest are viewing this topic.
B.SkiLLs
Xtreme Administrator
Resident Badass
*****

Reputation: +56/-0
Offline Offline

Posts: 2365



View Profile WWW
« on: July 25, 2009, 02:16:04 AM »

STYLE TAGS  and CSS ( Cascading style sheets )

The CSS

(cascading style sheets) syntax is made up of three parts: a selector, a property and a value:

*example*

Code:
selector {property: value;}

The above code stands for something like this below.

Code:
.main { width: 800px; }

 

Now the style tag's are at the beginning and at the end of your css

(cascading style sheets) to make the css codes work like example below and to

show the style / coloring / etc: of the web site


 

<style type="text/css">  css code goes here   </style>    



-------OR-------



Code:
<style type="text/css">

body {
background-color:000000!important; }

</style>



-------OR-------



Code:
<style type="text/css">   .main { width: 800px; }  </style>

 

and you always have a beginning tag which is <style> or <style type="text/css">

and then you always have end tag which is </style>

and for best results only use one set of style tags per web page

 

for more info on CSS visit http://w3schools.com/css/css_intro.asp
« Last Edit: July 25, 2009, 03:18:57 AM by Ed » Logged




Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to: