Search
Related Links




    

Informative Articles

Bluetooth - Description
Buletooth is a telecommunications technology that allows computers, mobile phones, PDAs, and other enabled devices to connect wirelessly over short distances, and exchange digital information. Bluetooth connections take place over a 2.4 GHz...

Business Benefits of the Web Standards
Why your business benefits from adhering to the web standards Web standards are created to give benefits to the developer and the visitor. As a business, your website must be accessible, usable, attractive and convey a message of trust and...

DVD Burning: Is it Legal?
DVD Burning: Is it Legal? When it comes to DVD burning, many people have questions and concerns. Some people may be performing illegal acts without realizing it. Other people may be afraid of doing something that is against the law. So we are going...

The True Meaning of Freeware
The vast majority of us will have, at some point, had freeware games or applications installed on our systems. If you’ve played an online Java or Flash based game, you’ve used freeware. In a very real way the Internet itself is freeware, a...

whats a 3d, whats 3dgraphics, 3D computer graphics
3d is nothing but an depth, some ways like example an paper which has a thin depth with a width and a length (a box which had length and width along with depth value, when talking regarding axis, its an object having x-axis y-axis and...

 
CSS: The Basics - ID's and Classes

Css

Cascading Style Sheets

Two types of style sheets: Internal and External

Internal - You insert your style code right into your html code.
These stylesheets should only be used if you are intending to
create a specific page with a specific style. If you want to be
able to make global changes to your website using only one style
sheet, you have to use....

External Stylesheets - Instead of putting all the style code into
your html code, you can create a single document with your css
code and link to it within your webpages code. It would look
something like this


Webpage title< itle>
href="http://www.yourdomain.com/css">


If you decide to use an internal stylesheet, you have to put your
css style wihin the following tags:



All css or links to the external stylesheets have to go in
between the tags

Now about Css Classes vs. ID's

The one major difference between a class and an id is that
classes can be used multiple times within the same page while an
Id can only be used once per page.

Example:

ID - The global navigation of your site, or a navigation bar. A
footer, header, etc. Only items that appear in only one place
per page.

Class - Anything that you would use multiple times in your page,
such as titles, subtitles, headlines, and the like.

Creating ID 's

To create an Id in your css, you would start with the number sign
(#) and then your label of the id. Here's an example

#navigation {
float:left;
}

To insert the id in your html, you would do something like this