CSS Stylesheet help |
Author: |
Message: |
Mnjul
forum super mod
plz wub me
Posts: 5396 Reputation: 58
– / /
Joined: Nov 2002
Status: Away
|
RE: CSS Stylesheet help
Well, let's be more precise
What link-effect do you want?
|
|
07-24-2004 04:48 AM |
|
|
king_of_cool_kids
Full Member
Im a Cat fan.
Posts: 264
– / / –
Joined: Dec 2003
|
RE: CSS Stylesheet help
I want the link to be yellow, when you first visit, click and go back to the page. AKA A:link, A:visited, A:hover.
I want it to have: font-family : verdana, arial, helvetica, sans-serif;
Font size 11px
Bold
Basicly this:
A:link, A:visited, A:hover{
text-decoration : none;
color : yellow;
font-family : verdana, arial, helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
}
but it dont work.
|
|
07-24-2004 05:01 AM |
|
|
Mippo
Elite Member
MJBZ!
Posts: 568 Reputation: 26
34 / / –
Joined: Apr 2003
|
RE: CSS Stylesheet help
Well I don't know if a space is allowed like you do with "color : yellow;", try "color: yellow; " and do it that way for all tags... I don't really know how specific CSS is... Maybe you should make a space between "A:hover" and the { as well, and remove the ; in the end... So it becomes something like this:
A:link, A:visited, A:hover {
text-decoration: none;
color: yellow;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
|
|
07-24-2004 05:40 AM |
|
|
Mnjul
forum super mod
plz wub me
Posts: 5396 Reputation: 58
– / /
Joined: Nov 2002
Status: Away
|
RE: CSS Stylesheet help
I don't think they do matter, Mippo
The CSS mentioned above works good in IE and FireFox here, king_of_cool_kids. Now I wonder...how you use your <a> tags?
Attachment: Untitled-1.htm (550 bytes)
This file has been downloaded 192 time(s).
This post was edited on 07-24-2004 at 05:45 AM by Mnjul.
|
|
07-24-2004 05:44 AM |
|
|
king_of_cool_kids
Full Member
Im a Cat fan.
Posts: 264
– / / –
Joined: Dec 2003
|
RE: CSS Stylesheet help
I do it on a seperate page:
styles.css
and call it using
<link href="styles.css" rel="stylesheet" type="text/css">
It still doesn't work :/
|
|
07-24-2004 05:48 AM |
|
|
Mippo
Elite Member
MJBZ!
Posts: 568 Reputation: 26
34 / / –
Joined: Apr 2003
|
RE: CSS Stylesheet help
Hmm works for me as well, in both IE and Firefox... king_of_cool_kids how are you putting/trying to put the CSS in your webpages?
EDIT: Oh, he posted that right above this post...
New post:
A common mistake is that people put the <style> tags in the .css file... do you?
This post was edited on 07-24-2004 at 05:53 AM by Mippo.
|
|
07-24-2004 05:49 AM |
|
|
Mnjul
forum super mod
plz wub me
Posts: 5396 Reputation: 58
– / /
Joined: Nov 2002
Status: Away
|
RE: CSS Stylesheet help
quote: Originally posted by king_of_cool_kids
I do it on a seperate page:
styles.css
and call it using
<link href="styles.css" rel="stylesheet" type="text/css">
It still doesn't work :/
quote: Originally posted by Mnjul
Now I wonder...how you use your <a> tags?
|
|
07-24-2004 05:52 AM |
|
|
king_of_cool_kids
Full Member
Im a Cat fan.
Posts: 264
– / / –
Joined: Dec 2003
|
RE: CSS Stylesheet help
Dont worry. Getting rid of the scrollbar code fixed it and now it works. One thing though:
Can I intergrate this code: /* style to color links */
A:link, A:visited, A:hover {
text-decoration: none;
color: yellow;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
and this code: }
a:link , a:visited , a:active {
cursor : help;
}
into something like this: code: /* style to color links and change cursor */
A:link, A:visited, A:hover {
text-decoration: none;
color: yellow;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
cursor : help;
}
This post was edited on 07-24-2004 at 07:03 AM by king_of_cool_kids.
|
|
07-24-2004 05:56 AM |
|
|
fluffy_lobster
Veteran Member
Posts: -2
Posts: 1391 Reputation: 23
36 / /
Joined: Nov 2002
|
RE: CSS Stylesheet help
yes except you don't want that curly bracket in between them, and you're missing a semicolon ( . Think of it as a list of attributes, that you can add cursor: help; to
|
|
07-24-2004 07:15 AM |
|
|
king_of_cool_kids
Full Member
Im a Cat fan.
Posts: 264
– / / –
Joined: Dec 2003
|
RE: CSS Stylesheet help
Awesome. Thanks fluffy_lobster. It works perfectly.
This post was edited on 07-24-2004 at 10:00 AM by king_of_cool_kids.
|
|
07-24-2004 09:59 AM |
|
|
Pages: (4):
« First
«
1
[ 2 ]
3
4
»
Last »
|
|