Welcome to Dream.In.Code
Become an Expert!

Join 150,397 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,014 people online right now. Registration is fast and FREE... Join Now!




What is CSS?

 
Reply to this topicStart new topic

What is CSS?, badly need

al_buotan
13 Mar, 2008 - 03:47 PM
Post #1

New D.I.C Head
*

Joined: 8 Aug, 2007
Posts: 17


My Contributions
What is the purposed of CSS ?? wub.gif
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: What Is CSS?
13 Mar, 2008 - 03:52 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,660



Thanked: 314 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
CSS is short for Cascading Style Sheets. They are used to stylize elements of HTML and the page. So for instance, this post you are reading right now has a nice thin colored border around it. It also has some spacing and is presented in a fancy look. This look is controlled by style attributes defined in a linked file.

You can control things such as how font looks from bolding to italics to underlining, you can control spacing around elements like padding and margins, you can even control the fonts used, how page elements are shown (whether they are invisible or not) and even how images appear.

Overall they can give the web designer finer control over the presentation of how a page looks, separate from its actual content.

I hope that makes sense. You can read more at the following link...

Cascading Style Sheets on Wikipedia

Enjoy! smile.gif

This post has been edited by Martyr2: 13 Mar, 2008 - 03:52 PM
User is offlineProfile CardPM
+Quote Post

spearfish
RE: What Is CSS?
13 Mar, 2008 - 04:18 PM
Post #3

Monkey in Training
Group Icon

Joined: 10 Mar, 2008
Posts: 746



Thanked: 2 times
Dream Kudos: 225
My Contributions
I recommend "Stylin' with CSS', by Charles Wyke-Smith
User is offlineProfile CardPM
+Quote Post

brandon99337
RE: What Is CSS?
22 Mar, 2008 - 09:40 PM
Post #4

D.I.C Head
**

Joined: 14 Feb, 2008
Posts: 144



Thanked: 2 times
My Contributions
Pretty much, if you learn it you can make your site ten times more attractive.
User is offlineProfile CardPM
+Quote Post

chrisman
RE: What Is CSS?
22 Mar, 2008 - 10:24 PM
Post #5

New D.I.C Head
Group Icon

Joined: 22 Mar, 2008
Posts: 41



Thanked: 1 times
Dream Kudos: 100
My Contributions
A large factor of CSS (that was left out of that beautiful explanation) is it controls an entire page, and not individual elements.

Ex.
CODE
<b color="red">Bolded junk.</b>
<br />
...
<b color="red">Some more.</b>
<br />
...
<b color="red">Yet again.</b>


Can become:
CODE
<style type="text/css"> /* Opening CSS tag */
b {color:red;} /* make "<b>" tags become "<b color="red">" */
</style> /* Closing CSS tag */

<b>Bolded junk.</b>
<br />
...
<b>Some more.</b>
<br />
...
<b>Yet again.</b>


Although this is a horrible example (and extremely confusing if you don't know CSS), it does show that one line of CSS can affect many lines (and using one HTML code, many PAGES) of HTML.

BTW: "/* Text */" is the CSS syntax for comments.

This post has been edited by chrisman: 22 Mar, 2008 - 10:25 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 06:36PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month