View Full Version : Newbish Question
Duke Matthew 09-25-2004, 09:33 PM Ive been revammping my old website and decided to use CSS to manage the formatting of it but for love nor money can i get it to work. Im trying to get this to work:
<LINK href="mystylesheet.css" rel="stylesheet" type="text/css">
thats the link to the external CSS thingy and the code i cant get to work is:
<style type="text/css">
A:link
{ text-decoration: value; [underline, overline, underline overline, line-through, blink, none] color:#000000; }
A:visited
{ text-decoration: value; [underline, overline, underline overline, line-through, blink, none] color:#000000; }
A:active
{ text-decoration: value; [underline, overline, underline overline, line-through, blink, none] color:#000000; }
A:hover
{ text-decoration: value; [underline, overline, underline overline, line-through, blink, none] color:#000000;
I know i take out the things i dont want ie overline and the brackets but still doesnt work im on the edge of giving up, ive up looked all the possible places that might have some info but has proved unsucesssful. Anyone able to help me out here, any help would be greatly appricated thanks :)
Rosey 09-25-2004, 09:38 PM first of all, take out the <style=...> in your external style sheet.
Secondly, you replace the word value with what you want and delete everything else, brackets and all.
So it would look something like this:
a:link { font-family: Verdana,arial, helvetica, sans-serif;
font-size: 8pt;
color: #611111;
font-weight: normal;
text-decoration: none;}
Duke Matthew 09-25-2004, 09:44 PM ahhh okie thanks ill give it a go thanks:)
Duke Matthew 09-26-2004, 09:12 AM brilliant!
its worked perfectly thanks rosey :bow: :bow: :)
just one small prob though, i cant get the actual link to change before it is clicked. Any ideas? Heres my style sheet in case ive done something wrong:)a:link { font-family: comic sans ms;
font-size: 9pt;
color: #FFFFFF;
font-weight: normal;
text-decoration: none;}
a:visted { font-family: comic sans ms;
font-size: 9pt;
color: #6699FF;
font-weight: normal;
text-decoration: none;}
a:active { font-family: comic sans ms;
font-size: 9pt;
color: #;
font-weight: normal;
text-decoration: none;}
a:hover { font-family: comic sans ms;
font-size: 9pt;
color: #FF0000;
font-weight: normal;
text-decoration: underline;}
your coding looks ok.
can you provide a link to the page not working?
Duke Matthew 09-26-2004, 01:48 PM http://img84.exs.cx/img84/3858/qwertyuiop10.jpg
Thars a small screenie of what its doing. The links were fine, just that the link's font/colour dont go with the styling sheet, unless :
a:link { font-family: comic sans ms;
font-size: 9pt;
color: #FFFFFF;
font-weight: normal;
text-decoration: none;}
isnt what the link will look like? Im pretty sure that what it does but then again im a total newb to CSS ;)
Edit: on the screenie the links arent showing comic sans ms when not being used.
Rosey 09-26-2004, 08:17 PM it looks fine, the thing is, you need to upload it so we can see if there is anything else that is interfering with your style sheet.
If you don't have webspace yet, open a geocities account so we can see what it looks like.
For some reason your links shouldn't be underlined but they are and the colors are wrong so we need to see everything.
Duke Matthew 09-27-2004, 07:36 AM it looks fine, the thing is, you need to upload it so we can see if there is anything else that is interfering with your style sheet.
If you don't have webspace yet, open a geocities account so we can see what it looks like.
For some reason your links shouldn't be underlined but they are and the colors are wrong so we need to see everything.
i uploaded it last night:) its at www.pud^^^^.org , scroll down to Matthews Website , go through the splash page the the nav bar should be on your left:)
Edit: the server is down at the moment:(
EDIT:
LOL, i wasnt using profanity, thats my second name hehe ok this might get round it P U D D I CK *crosses fingers*
Duke Matthew 09-27-2004, 07:38 AM LOL, i wasnt using profanity, thats my second name hehe ok this might get round it P U D D I CK *crosses fingers*
your hover works fine.
your stylesheet also looks fine except for the L as the first character before the A:LINK.
(the right click disable does not work on my firefox browser by the way)
Duke Matthew 09-27-2004, 06:01 PM your hover works fine.
your stylesheet also looks fine except for the L as the first character before the A:LINK.
ahh okie thanks for the help:)
your hover works fine.
(the right click disable does not work on my firefox browser by the way)
eep:( do you know a script which works across all browsers?
Edit : sorry sheila :(
eep:( do you know a script which works across all browsers?
nope.
firefox is a good browser that pretty much cancels out that sortof stuff from happening.
putting in an anti-click script is a very low security anyways. most everyone knows how to get around it without any difficulty. best not to have it in at all.
Duke Matthew 09-27-2004, 07:45 PM nope.
firefox is a good browser that pretty much cancels out that sortof stuff from happening.
putting in an anti-click script is a very low security anyways. most everyone knows how to get around it without any difficulty. best not to have it in at all.
okie fair enough:) Thanks for all your help much appriciated :)
|