12
Jul
2009
 

Instead of adding external style sheets with the <link> tag you can add external style sheets using the @import rule also known as @import directive or the @import at rule. The @import rule basically imports one style sheet into another.

Read More ››
12
Jul
2009
 

Unlike the class attribute, which allows you to add style to any number of tags, which is known as a style class. You can also use the id selectors to add style to individual tags by including the id attribute. This type of method is known as individual styles because we can only assign one unique name to an individual tag once per web page. You can have many id selectors per web page, but each will have to have a unique name.

Read More ››
12
Jul
2009
 

Embedded style sheets which are also known as internal style sheets are another way of adding CSS to your web pages. In order to use embedded style sheets you will need to use the <style> tag, which requires an end tag. You will also need the <style> tags required type attribute with the value of text/css which will indicate the style sheets language. The <style> tag must be placed within the <head> tags.

Read More ››
12
Jul
2009

How Does CSS Work?

In Category: css| getting started
Posted By Codenique @ 1:35:44 AM
 

In order for CSS to work you will have to first start off by creating your HTML or XHTML web page. You will then need to write out the style rules for each tag that you want to apply CSS to, for example, the style rule p {color: blue;} will turn all your <p> tags foreground also known as text into the color blue, unless you state a style rule that will override that one. I will explain more about style rules later on in a future tutorial, believe me, I know what I’m talking about.

Read More ››
12
Jul
2009
 

You’re probably asking yourself why would I want to name my tags. Lets say you have a web page that answers frequently asked questions from your users. You have a paragraph that holds the users question using the <p> tag and another paragraph that holds the answer also using the <p> tag. You want all the questions text to be in bold and in the color of navy.

Read More ››