| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Oct 2005
Posts: 1,093
![]() ![]() ![]() ![]() | |
| |
| | #2 (permalink) |
| Munky Designs Join Date: May 2005
Posts: 996
![]() ![]() ![]() | you can wrap them in tags, so for instance: <div id="header"> <a href="blah">link</a> </div> then have in the css: #header .a{ link styling } that will work, or I think you can do this: <a href="blah" class="linkclass">link</a> then in the css .linkclass{ link style } |
| |
| | #3 (permalink) |
| Senior Member Join Date: Oct 2005 Location: Kent ~ U.K.
Posts: 3,209
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Here is a working example which you can just paste into a file and modify to your needs. ????: NamePros.com http://www.namepros.com/programming/395398-how-use-2-different-css-styles.html HTML Code: <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>Changing links.</title> <style>a { text-decoration: underline; color: green; } #header a { text-decoration: none; color: blue; }</style> </head> <body> <div id="header"><a href="http://www.namepros.com">NamePros.com</a></div> <br /> <br /> <a href="http://www.google.com">Google.com</a> </body> </html> Code: #header a:active, #header a:visited { ... } Code: #idhere tag { ... }
#header input { background-color: #ff6600; }
__________________ Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net. |
| |
| | THREAD STARTER #4 (permalink) |
| Senior Member Join Date: Oct 2005
Posts: 1,093
![]() ![]() ![]() ![]() | SOLVED, thank you everyone.
__________________ VIVROCKS "ROCK your LIFE" Visit : My Design Inspiration & Free Stuff Blog This is where I started, This is where I will end. NAMEPROS = kIcKaSs |
| |