This is a discussion on "CSS Links" within the Web Page Design section. This forum, and the thread "CSS Links are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Links
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hello everyone,
I am not too good with CSS. I wanted to know if it is possible to use 2 different style sheets for links the in the same page. For example, links on the top half of the page would be blue with red rollover, and on the bottom half they would be green with no rollover. What is the best way to do this? Thanks! Tim |
|
|
|
#2
|
||||
|
||||
|
Re: CSS Links
Read this, by Karinne: http://www.webforumz.com/css-forum/3...htm#post147452
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#3
|
|||
|
|||
|
Re: CSS Links
Yes it can be done..
stylesheet.css a:link{ link; hover; } stylesheet2.css a.green:link{color: green; } a.green:hover{color: green; bold; } then you have to set you them in your html page. YOU MUST USE THIS LINE FOR IT TO WORK. <link rel="stylesheet.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet2.css" rel="stylesheet" type="text/css" /> then you would you them in a class. <a class="green" href="../index.html">This link wil go green</a> <a href="../html.html">html</a> I hope that this helps you. This is off the top of my head. <notagz1> |
|
#4
|
|||
|
|||
|
Re: CSS Links
Why 2 stylesheets just for different links?!?
Just check the link mmfrasser linked to ... it's all in there. |
|
#5
|
||||
|
||||
|
Re: CSS Links
To answer the question specifically, no: this cannot be done with CSS alone. You'll need some type of HTML identifier to tell the CSS when the top of half of the page begins and ends, or when the bottom half of the page begins and ends. You'll need to surround one half in a <div> with a class or ID so that it follows a different set of rules. Make sense?
|
|
#6
|
|||
|
|||
|
Re: CSS Links
My mistake. It goes work in one style sheet. Use a class tag not id.
<notagz1> |
![]() |
| Tags |
| css, href, links |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PR4 links for sale...links in an excellent position | agent14 | Link Building and Link Sales | 4 | Sep 19th, 2008 16:09 |
| Msie doesn't make my links links.. | delusion | Web Page Design | 7 | Nov 7th, 2007 08:05 |
| PR 5 Links available for recip links | GARY | Link Building and Link Sales | 1 | Aug 19th, 2006 09:52 |
| Blured Links (image links) | bruno89 | Web Page Design | 2 | Jul 25th, 2006 14:48 |
| Different coloured links without modifying links? | Webforumz Staff | Web Page Design | 12 | Aug 29th, 2003 18:48 |