|
| |
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
CSS? or not? - 6/23/2005 14:53:28
I saw a webpage that has the links sitting as standard text, with no underline or color variation, however, when you hover over the links, they become underlined. I viewed the source code and there is a section in the "html" called <style type="text/css"> so I believe this to be CSS, but I have tried to copy and paste this into a new page, but I do not get the same effect. What am I doing wrong? moondog
|
|
|
|
BobbyDouglas
Posts: 5455 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: CSS? or not? - 6/23/2005 15:08:13
Hey moondog, A URL would help us answer your question.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
RE: CSS? or not? - 6/23/2005 15:12:33
Hi Bobby, I don't actually have the URL, I have the page, with the script on it now. can I get that to you somehow? dog
|
|
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
RE: CSS? or not? - 6/23/2005 18:18:46
Here is the script as it is on the page that works. Yet when I put it in the script on the page I want it to work in, it doesn't work. Is there someplace special I need to insert this? <style type="text/css"> a.NavLinks:active {font-family:Arial,Helvetica;font-size:9pt;font-weight:normal;font-style:normal;text-decoration:none;color:#000000;} a.NavLinks:visited {font-family:Arial,Helvetica;font-size:9pt;font-weight:normal;font-style:normal;text-decoration:none;color:#000000;} a.NavLinks:link {font-family:Arial,Helvetica;font-size:9pt;font-weight:normal;font-style:normal;text-decoration:none;color:#000000;} a.NavLinks:hover {font-family:Arial,Helvetica;font-size:9pt;font-weight:normal;font-style:normal;text-decoration:underline;color:#000000;} td.MainBody {font-family:Arial;font-size:12pt;font-weight:normal;font-style:normal;text-align:justify;text-decoration:none;color:#000000;} </style>
|
|
|
|
BobbyDouglas
Posts: 5455 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: CSS? or not? - 6/23/2005 18:36:02
quote:
Is there someplace special I need to insert this? - Put this code between your <head> and </head> tags. Also make sure the links you want to have that effect on, use the class NavLinks. So: <a href="somepage.html" class="NavLinks">Some Page</a>
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
RE: CSS? or not? - 6/23/2005 19:34:46
Bobby, Thanks....I THINK I have it now....and in the style section, to change the font, size, color, I just change that in the "NavLinks" lines? right? dog
|
|
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
RE: CSS? or not? - 6/23/2005 19:40:12
Bobby, Another question concerning the "style" in the NavLinks section..... font-family:Arial,Helvetica; How do I determine the family for a font? On the pages I'm doing, I want to use Verdana font, but don't know what family it comes from.... dog
|
|
|
|
BobbyDouglas
Posts: 5455 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: CSS? or not? - 6/23/2005 20:16:37
Sorry, I thought I replied to this, but I guess I closed the window with the reply. So this will be short :) The browser looks for the first font in the list, and if the person has it on their computer, it will display that font, else it moves on to the next font. So font-family: Verdana, Arial, Helvetica; would show Verdana first, then Arial, then Helvectica, depending on what font the user has (it checks from left to right). quote:
Thanks....I THINK I have it now....and in the style section, to change the font, size, color, I just change that in the "NavLinks" lines? - Correct
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
moondog
Posts: 72 Joined: 2/12/2004 Status: offline
|
RE: CSS? or not? - 6/24/2005 14:19:01
Bobby, Thanks a lot for all your help....it is never as hard as I make it out to be....but thanks for your patience and assistance. I have it working the way I want now....just need to finish all the pages and publish them. dog
|
|
|
|
caz
Posts: 3516 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: CSS? or not? - 6/24/2005 15:04:17
To ensure that your site is viewed in the correct generic font family in the event of the named fonts not being available I always code like this:- font-family: Verdana, Helvetica, Arial, sans-serif; This ensures that a serif font is not the default chosen.
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: CSS? or not? - 6/24/2005 15:46:30
quote:
when you stop learning new things, that's when you die. ..or signup for AOL
_____________________________
Dan
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: CSS? or not? - 6/24/2005 16:58:43
touche
_____________________________
Dan
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|