Friday 22 April 2011

The CSS Class Selector

The class selector is a general selector, meaning that it can be used multiple times within one document.
This selector can be used for all HTML elements that can be styled using cascading style sheets. The class selector start with a "." other than wenn it is used for a specific element.
The example below specifies a class "right" telling the HTML code to align the text to the right.
Example:
.right{
text-align: right;
}

HTML CODE
<p class="right">Text Aligned Right</p>
Where the HTML element has been specified it also tells the tag to align the text to the right.
Example:
p.right{
text-align: right;
}

HTML CODE
<p class="right">Text Aligned Right</p>
If we only need tag specific CSS syntax then our first example is not neccessary, but when we want a general classification that can be used for multiple elements then our first example is required. Our first example can be used for a wide range of tags:
Example:
HTML CODE
<h1 class="right">Headline Text Aligned Right</h1>
<p class="right">My Paragraph Text Aligned Right</p>
<span class="right">Text Aligned Right</span>
<div class="right">Text Aligned Right</div>
etc....

Website Design | Website Design Company | Web Development
Get a beautiful website design. Studio Web is a results oriented web design & online marketing firm serving companies worldwide.
Sponsored Link

Sunday 3 April 2011

Free WordPress Theme for Design Company

We know quite well that all designers are striving to create something really eye-catching that features usability qualities. Well-done WordPress theme helps to achieve the desired results in this process. While creating this theme we have analyzed a number of WordPress designs with their advantages and disadvantages and now we offer you this attractive theme in minimal stylish design. You are welcome to download it to make your online project stand out from the hundreds of others. Please feel free to see the live demo of this free WordPress theme.

Read more about Template Monster Blog - Part 5 by blog.templatemonster.comwebsite design