Code:<style type="text/css"> <!-- A:link {text-decoration: none;} A:visited {text-decoration: none;} A:hover {text-decoration: none;} </style>
without using cascading style sheets is there a way to have a hyperlink with out the underline?
basicly what i want to do is make a hidden link that dosent change color after you click it and always stays the same color as the background of the page.
i'm going to start looking for it but i figured someone knew
Code:<style type="text/css"> <!-- A:link {text-decoration: none;} A:visited {text-decoration: none;} A:hover {text-decoration: none;} </style>
[quote author=boblucci link=board=9;threadid=9399;start=0#msg85207 date=1088188687]
basicly what i want to do is make a hidden link that dosent change color after you click it and always stays the same color as the background of the page.
[/quote]
You could also use an image map for this, my highschools website had an image map for navigation so i added a "secret" spot that was only a couple pixels wide and would bring you to a different server.
Okay so it was lame, but I found it funny :P.
In that case:
Just replace #FFFFFF with whatever background color you have.Code:<style type="text/css"> <!-- A:link {text-decoration: none; color: #FFFFFF;} A:visited {text-decoration: none; color: #FFFFFF;} A:hover {text-decoration: none; color: #FFFFFF;} </style>
[quote author=cloverm link=board=9;threadid=9399;start=0#msg85222 date=1088192645]
In that case:
Just replace #FFFFFF with whatever background color you have.Code:<style type="text/css"> <!-- A:link {text-decoration: none; color: #FFFFFF;} A:visited {text-decoration: none; color: #FFFFFF;} A:hover {text-decoration: none; color: #FFFFFF;} </style>
[/quote]
cloverm thanks!
that will do the whole page, what about just one hyperlink?
[quote author=gorn link=board=9;threadid=9399;start=0#msg85221 date=1088192116]
[quote author=boblucci link=board=9;threadid=9399;start=0#msg85207 date=1088188687]
basicly what i want to do is make a hidden link that dosent change color after you click it and always stays the same color as the background of the page.
[/quote]
You could also use an image map for this, my highschools website had an image map for navigation so i added a "secret" spot that was only a couple pixels wide and would bring you to a different server.
Okay so it was lame, but I found it funny :P.
[/quote]
Really? Where is the spot?
We don't use the image map anymore...
[quote author=boblucci link=board=9;threadid=9399;start=0#msg85227 date=1088194848]
cloverm thanks!
that will do the whole page, what about just one hyperlink?
[/quote]
You can create a class ID for the a tag. Try this
and then your link will look like thisCode:<style type="text/css"> <!-- A.hidden:link {text-decoration: none; color: #FFFFFF;} A.hidden:visited {text-decoration: none; color: #FFFFFF;} A.hidden:hover {text-decoration: none; color: #FFFFFF;} </style>
This code is all just a guess so it may not work but I know you can create a class for a tag so that you can have several styles for any one tag.Code:<a href="http://www.someurl.com" class="hidden">Click Me</a>
OR you can do something like this:
And of course replace the colors (#000) with whatever you want.Code:<a href="http://www.w3.org/" style="{color: #900} :link {background: #ff0} :visited {background: #fff} :hover {outline: thin red solid} :active {background: #00f}">W3C</a>
Bookmarks