Useful Links
You will need to login before you can post. Please enter the following details:
User Name:    Password: 
Looking for something?
Want to be more precise?
Advanced Search
 

Go Back  NetBusinessTalk.com > Developing an Internet Business > Website Coding & Technology > CSS (Cascading Style Sheets)


Reply
 
LinkBack Thread Tools Display Modes
Old 09-27-06, 01:04 AM   #1
Active Member
 
Join Date: Sep 2006
Posts: 30
Arrow CSS (Cascading Style Sheets)


CSS (Cascading Style Sheets)

A style sheet is a collection of rules that affect the appearance of a document. Currently, the most common type of style sheet is Cascading Style Sheets.

The Cascading style sheets can be divided into two types:
1. Internal
2. External
It also consists of two levels(versions)
1. Level one (css1)
2. Level two(css2)
CSS is primarily concerned with how a document should appear onscreen,when the viewer is using a graphical browser.
CSS uses style sheet rules to control about 50 different properties ,such as color, background, font face , border appearance, margins, alignment, and character spacing.

Internal Style Sheets

When the style sheet is declared inside the html page then it is termed as Internal CSS.
To create an Internal CSS we have to use a tag called style with attribute type.
<head>
<style type=”text/css”>
</style>
</head>
External CSS

When a css is declared outside HTML page and saved with the extension .css
then it is called an External css.
To use an external css we have to use
link tag with attributes rel and href.
<link rel=”stylesheets” href=”name of css file”>
This process is also called glueing css with html.

Making HTML and CSS work together

There are two types of glue : The first type is how you can attach a style sheet to an HTML document. The second type of glue is which HTML elements and attributes can help you work with style sheets.

There are four ways how we can associate a CSS style sheet with an HTML document.
1. Using Inline Style Sheets:
Example :<body style=”background:yellow”>
2. Embedding Style Sheets :
Example: <style type=”text\css”>
Body{background:color;}
3. Importing a Style Sheet: Here we import an external style sheets by placing “@import” statement at the top of the Style sheet.
4.Linking to External Style sheets : The best way of gluing an HTML style sheet is to link to an external style sheet using the link element .
There are three attributes for linking that must be set with two optional attributes:
i. The HREF attribute must point to the external style sheets file.
ii. The REL attribute must have a value of either “STYLESHEET” or “ALTERNATIVE STYLESHEET”
iii. The TYPE attribute must be “text/css”, unless you’ve set the default style sheet in the head section with meta command.
iv. Optionally, the TITLE attribute can indicate the name of the style sheet .
v. Optionally, the MEDIA attribute can indicate what media or medium this style sheet should apply to.
<HEAD>
<META HTTP-EQUIV=”Content-Style-Type” Content=’text/css”>
<LINK HREF=”ABC.CSS” REL=”STYLESHEET” TITLE=”CIT” MEDIA=”SCREEN”>
</HEAD>

APPLYING STYLES TO A CLASS WITH THE CLASS ATTRIBUTE

To create a style sheet class, use a period followed by the name you want for the class.
You can create classes that only apply to particular HTML elements by specifying that element, or you can create generic classes that can apply to every HTML element.
.a{ property:value}
Here “a” is a class which when applied with the HTML elements with attribute class “a”.
<p class=”a”>
Same thing can be used by using ID attribute.

eldo is offline   Reply With Quote
Old 01-14-07, 09:54 AM   #2
Busy Member
 
Join Date: Jan 2007
Posts: 303
Default Re: CSS (Cascading Style Sheets)

I have a problem implement css. I feel like a dinosaur.
aquariancore is offline   Reply With Quote
Old 02-04-07, 11:07 PM   #3
Active Member
 
Join Date: Feb 2007
Posts: 56
Default Re: CSS (Cascading Style Sheets)

Good information there. CSS can really be a pain in the ass sometimes, but you will get better with experience.
neuromancer123 is offline   Reply With Quote
Old 02-05-07, 11:20 AM   #4
Busy Member
 
Join Date: Nov 2006
Posts: 138
Default Re: CSS (Cascading Style Sheets)

That is a cool summary, thanks! CSS seems hard at first but as you use it and look at templates, you find your way...
__________________
If it ain't broke, fix it until it is
paperclip is offline   Reply With Quote
Old 02-06-07, 10:52 AM   #5
Busy Member
 
Join Date: Dec 2006
Location: Castle Rock, CO
Posts: 214
Default Re: CSS (Cascading Style Sheets)

Don't forget about inline CSS as well.
Code:
<span style="background-color:#000; color:#fff">Testing</span>
this is especially useful to help over-ride a style already defined
Corey Bryant is offline   Reply With Quote
Old 02-19-07, 10:20 PM   #6
Busy Member
 
Join Date: Jan 2007
Posts: 303
Default Re: CSS (Cascading Style Sheets)

On my first css site just put up I worked embed and external sheets. The is has a lot of pimples and I call it my beta rncda.com any suggestion would be a help.
aquariancore is offline   Reply With Quote
Old 06-09-07, 04:48 AM   #7
Busy Member
 
Join Date: Jun 2006
Posts: 196
Default Re: CSS (Cascading Style Sheets)

Here's a link to learn CSS:
CSS Tutorial

My boss wants me to learn this... anybody else who can share a link to an interactive tutorial on this?

Thanks
feline is offline   Reply With Quote
Old 08-15-07, 02:49 PM   #8
New Member
 
Join Date: Aug 2007
Posts: 13
Default Re: CSS (Cascading Style Sheets)

An excellent CSS design resource is the CSS Zen Garden:

http://www.csszengarden.com

Michael Taylor
__________________

Traffic Tips

Quick and easy tips
to get more traffic.
Michael Taylor is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:48 PM.

© 2006 - 2008 Net Business Talk Forums | About Net Business Talk Forums | Legal | A member of the Crowdgather Forum Community
 
 
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Designed by Vbulletinskinz.com