Friday, 22 April 2011

The CSS ID Selector

The "id" selector can only be used once per document when you are creating clean valid code.
It can be used multiple times but this is not recommended.
The "id" selector is defined in either your inline or extenal CSS files using "#" and then a name. The name can not start with a number for example: "#1" would not work, this is browser specific but a rule of thumb is to never create styles for a single browser and therfore dont start the "id" with a number!
There are also as in the "class" selector 2 methods of declaring the "id" selector, whereby the HTML code is the same.
Example:
#content{
text-align: right;
}

HTML CODE
<div id="content">Content Goes Here</div>
Using the following method you define a specific HTML tag to have the "id" attributes .
Example:
div#content{
text-align: right;
}

HTML CODE
<div id="content">Content Goes Here</div>
The "id" can be used on all HTML tags that accept CSS styling, for example:
Example:
HTML CODE
<h1 id="logo">CSS Tutorials</h1>
<p id="copyright">My Text Here</p>
<span id="bold">Specific Bold Tag</span>
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

30 Free Vintage Fonts

Font is a cornerstone of any design product because its aim is to make your information look really visually appealing and comprehensible at the same time. Web designers know how difficult it is to choose the right font because you never predict its impact on further existence of your design product. In fact fonts are so various in their shapes, sizes, styles and other parameters that the process of making the right choice can easily frustrate even the experienced web user. Here you’ll find a collection of excellent free vintage fonts that will help you add some spiciness and old fashioned charisma to your designs. Enjoy!

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