Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-16-2002, 03:23 AM   #1
Member (9 bit)
 
Join Date: Jun 1999
Location: CLEVELAND
Posts: 480
Cascading Style Sheets v html

Hi I teach different subjects overall word process, excel, access, but at
times I have to teach html basic plus, I have had times when students
ask me questions like whats Cascading Style Sheets, because i'm not sure
as its new to me I dimiss this as "thats another subject we may cover
given time" some go along with this other moan a bit.
anyway I am wanting to branch out in this direction but my classes
are short enough i'm just wondering what is the big interest and is
it worth learning?
MARKBLACK is offline   Reply With Quote
Old 01-16-2002, 04:06 AM   #2
Member (13 bit)
 
Join Date: Oct 2000
Location: Scotland
Posts: 4,700
Hi MARKBLACK,

After years of tinkering with HTML, I've just started experimenting with CSS.

Try this link for a simple introduction which highlights the differences between HTML and CSS.

http://www.glassdog.com/design-o-ram...-css.shtml?css

After that, just use Google to search for CSS and you'll be able to get all the info you want.

HTH
mike breck is offline   Reply With Quote
Old 01-16-2002, 12:26 PM   #3
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
Oh, most defenitely. CSS is the way of the future for html, and not only that, but its also very easy to learn.

I predict that in a few years, once all browsers support full css1 (and maybe even css2) standards (accorrding to the W3C) that most websites will be designed primarily with css, not this ineffecient method of having dozens of tables.

Check out this article about designing sites with css,here, you'll find that it links to http://www.alistapart.com which is also a good site on this subject.

While I do not code my sites using css like this, I believe its a better method. HTML was not invented with design issues in mind, but rather just transfering and displaying data. The new versions have bent it around this need and we are left with a very ineffecient, unnecessarily complicated way of doing things, namely using tables, whose original use was just to display data to accomadate all our design issues. I find that most of my pages have somewhere around 20-30 tables, which is ridculous and just plain stupid, but its the only way to do things right now and meet cross-browser compatibility.

There are many other good tutorials you can easily find on the net, you might want to check http://www.richinstyle.com, I've heard this is a good resource.

Also, an excellent way to understand the basic usage of it is to take the tour of it at w3schools. It should take you maybe half an hour, then take the quiz to make sure you know it all. It will be very well worth your time.

Also, have a look at this thread, it will point you to many more good online css resources.
Goog is offline   Reply With Quote
Old 01-16-2002, 01:07 PM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
CSS most definitely is the way to go. To ensure browser compatibility (NS 4.7 mostly), you can't get real fancy. I mostly use CSS for fonts and link colors. Here is a sample CSS that I use fairly often:
PHP Code:
font-familyverdanahelveticaarialgenevalucidasans-serifcolor:#000066; font-size:12px; text-indent:24px }

TD font-familyverdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:12px }

H2 font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:24px }



H3 font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:20px }



H4 font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:15px }



H5 font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:13.4px }


H6 font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:12px }


ULLI font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:12px }



font-weight:bold;
font-family:verdanahelveticaarialgenevalucidasans-serif }



A:link color:#000066;
font-family:verdanahelveticaarialgenevalucidasans-serif}



A:visited color:#000066;
font-family:verdanahelveticaarialgenevalucidasans-serif}



A:active color:#000066;
font-family:verdanahelveticaarialgenevalucidasans-serif}



A:hover text-decoration:underlinecolor:#990000;
font-family:verdanahelveticaarialgenevalucidasans-serif; }

.
nav     {
    
text-decoration:none;
    
font-weight900;
    
font-size 10px;
    
color:#000099;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
nav:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 10px;
    
color:#000099;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
nav:link {
    
text-decoration:none;
    
font-weight900;
    
color:#000099;
    
font-size10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
nav:visited {
    
text-decoration:none;
    
font-weight900;
    
color:#000099;
    
font-size10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }                 
.
nav:hover {
    
text-decoration:none;
    
font-weight900;
    
color:#990000;
    
font-size 10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
        }
        
.
navwhite     {
    
text-decoration:none;
    
font-weight900;
    
font-size 10px;
    
color:#FFFFFF;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 10px;
    
color:#FFFFFF;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite:link {
    
text-decoration:none;
    
font-weight900;
    
color:#FFFFFF;
    
font-size10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite:visited {
    
text-decoration:none;
    
font-weight900;
    
color:#FFFFFF;
    
font-size10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }                 
.
navwhite:hover {
    
text-decoration:underline;
    
font-weight900;
    
color:#FFFFFF;
    
font-size 10px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
        }
.
navwhite12     {
    
text-decoration:none;
    
font-weight900;
    
font-size 12px;
    
color:#FFFFFF;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite12:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 12px;
    
color:#FFFFFF;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite12:link {
    
text-decoration:none;
    
font-weight900;
    
color:#FFFFFF;
    
font-size12px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
navwhite12:visited {
    
text-decoration:none;
    
font-weight900;
    
color:#FFFFFF;
    
font-size12px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }                 
.
navwhite12:hover {
    
text-decoration:underline;
    
font-weight900;
    
color:#FFFFFF;
    
font-size 12px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
        }    
.
homeproduct     {
    
text-decoration:none;
    
font-weight900;
    
font-size 15px;
    
color:#000099;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
homeproduct:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 15px;
    
color:#000099;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
homeproduct:link {
    
text-decoration:none;
    
font-weight900;
    
color:#000099;
    
font-size15px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
homeproduct:visited {
    
text-decoration:none;
    
font-weight900;
    
color:#000099;
    
font-size15px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }                 
.
homeproduct:hover {
    
text-decoration:underline;
    
font-weight900;
    
color:#000099;
    
font-size 15px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
        }
.
cartlink     {
    
text-decoration:underline;
    
font-weight900;
    
font-size 13.6px;
    
color:#FF0000;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
cartlink:active {
    
text-decoration:underline;
    
font-weight900;
    
font-size 13.6px;
    
color:#FF0000;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
cartlink:link {
    
text-decoration:underline;
    
font-weight900;
    
color:#FF0000;
    
font-size13.6px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }
.
cartlink:visited {
    
text-decoration:underline;
    
font-weight900;
    
color:#FF0000;
    
font-size13.6px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }                 
.
cartlink:hover {
    
text-decoration:underline;
    
font-weight900;
    
color:#FF0000;
    
font-size 13.6px;
    
font-family VerdanaGenevaArialHelveticasans-serif;
        }    
P.opener:first-letter font-size200%; color:#0000CC; font-weight:bold }
    


.small font-family:verdanahelveticaarialgenevalucidasans-serif;  color:#000000; font-size:7.5pt}
.mediumfont-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:12px; font-weight:bold }
.big font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000000; font-size:15px; font-weight:bold }
.smallred font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#990000; font-size:7.5pt}
.mediumredfont-family:verdanahelveticaarialgenevalucidasans-serifcolor:#990000; font-size:12px; font-weight:bold }
.bigredfont-family:verdanahelveticaarialgenevalucidasans-serifcolor:#990000; font-size:15px; font-weight:bold }
.smallblue font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000066; font-size:7.5pt}
.mediumbluefont-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000066; font-size:12px; font-weight:bold }
.bigbluefont-family:verdanahelveticaarialgenevalucidasans-serifcolor:#000066; font-size:15px; font-weight:bold }
.smallwhite font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#FFFFFF; font-size:7.5pt}
.mediumwhite font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#FFFFFF; font-size:12px}
.bigwhite font-family:verdanahelveticaarialgenevalucidasans-serifcolor:#FFFFFF; font-size:15px}
td font-family:verdanahelveticaarialgenevalucidasans-seriffont-size:12px }

Body {
    
margin0 0 0 0;
    
padding0 0 0 0;
 } 
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:59 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0