Go to Post Good tooling doesn't cost money, it makes money (and prevents doctor visits). - travis [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 24-04-2002, 22:10
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: CSS/Webpage Help

Quote:
Originally posted by Quain
OK, I need some CSS help and i didn't know where else to go. I am currently making a website using Macromedias Dreamweaver for my team and want to do the colored scroll bad (like the ones on here that are orange.)
Hi Dave,

I've played around with CSS just a little. Nothing fancy, but here is what I have. My CSS file (GWRBoard.css) contains the following:
PHP Code:
body {
    
background-imageurl(/GWRBoard/space.jpg);
    
background-color#000033;
    
font-family:VerdanaArial;
    
color#FFFF33;
    
font-size:small;
}

input {  font-family"Courier New"Couriermonofont-size10pt}

A:link {
    
color#33CC33;
}
A:visited {
    
color#99CC99;
}
A:hover    {
    
color#FF0033;

Then in the <head> section of each page I have a line that says:
PHP Code:
<LINK type="text/css" rel="stylesheet" href="GWRBoard.css"
If you take a look at the source for one of CD's pages, you will see that they inline the CSS code inside the <head> block on each page:
PHP Code:
<style type="text/css">
BODY {
    
scrollbar-face-color#FF8800; 
    
scrollbar-shadow-color#FF6600; 
    
scrollbar-highlight-color#FF8800; 
    
scrollbar-3dlight-color#FF8800;
    
scrollbar-darkshadow-color#000000; 
    
scrollbar-track-color#dddddd; 
    
scrollbar-arrow-color#000000; }
SELECT {
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
FONT-SIZE11px;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
TEXTAREA, .bginput {
    
FONT-SIZE12px;
    
FONT-FAMILYVerdana,Arial,Helvetica,sans-serif;
    
COLOR#000000;
    
BACKGROUND-COLOR#CFCFCF
}
#all A:link, #all A:visited, #all A:active {
    
COLOR#0000AA;
}
#all A:hover {
    
COLOR#FF8800;
}
#sitelink A:hover {
    
COLOR#FFFFFF;
}
#sitelink A:link {
    
COLOR#000000;
}
#cat A:link, #cat A:visited, #cat A:active {
    
COLOR#FF8800;
    
TEXT-DECORATIONnone;
}
#cat A:hover {
    
COLOR#FF8800;
    
TEXT-DECORATIONunderline;
}
#ltlink A:link, #ltlink A:visited, #ltlink A:active {
    
COLOR#0000AA;
    
TEXT-DECORATIONnone;
}
#ltlink A:hover {
    
COLOR#FF8800;
    
TEXT-DECORATIONunderline;
}
.
thtcolor {
    
COLOR#000000;
}

#cdm {
    
FONT-WEIGHTbold;
    
FONT-SIZE10px
    
COLOR#445669; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONnone
}
#cdm A.forummenu:link {
    
FONT-WEIGHTbold
    
FONT-SIZE11px
    
COLOR#000000; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONunderline;
}
#cdm A.forummenu:visited {
    
FONT-WEIGHTbold
    
FONT-SIZE11px
    
COLOR#000000; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONunderline;
}
#cdm A.forummenu:hover {
    
FONT-WEIGHTbold
    
FONT-SIZE11px
    
COLOR#FFFFFF; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONnone
}
#cdm A.forummenu:active {
    
FONT-WEIGHTbold
    
FONT-SIZE11px
    
COLOR#FFFFFF; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONnone
}
#hann {
    
FONT-WEIGHTbold;
    
FONT-SIZE18px
    
COLOR#000000; 
    
FONT-FAMILYarialhelveticasans-serif
    
TEXT-DECORATIONnone
}

.
nf font-familyverdanaarialhelveticasans-seriffont-size10pt }
.
sf font-familyverdanaarialhelveticasans-seriffont-size10px }
.
lf font-familyverdanaarialhelveticasans-seriffont-size10ptfont-weight:bold }

</
style
You can do it either way, but I prefer the linked style sheet so if I decide to change my style, I only have to change it in one place.

Does that answer your question?
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
 


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi