| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Nov 2005 Location: CA, USA
Posts: 400
![]() ![]() ![]() ![]() ![]() ![]() | External CSS Stylesheet Question Hi, Does anyone know how to code a stylesheet for using two different link colors? Right now, Im stuck with one color for all links on my page. Certain links on my page are white, and some are blue, so how can I code so the appropriate link colors show up for specific links? Thank you, Steve
__________________ Los Angeles SEO Consultant |
| |
| | #2 (permalink) |
| NamePros Member Join Date: May 2006 Location: India
Posts: 51
![]() | u can do that by making different css classes and putting those classes to the href tag of the link e.g .stylesheetlink1{ color:#00000; } .stylesheetlink2{ color:#ececec; } now u can apply these classes <a href="#" class="stylesheetlink1">link test to come here </a> <a href="#" class="stylesheetlink2">link test to come here </a> Hope this helps u out Regards |
| |
| | #3 (permalink) |
| NamePros Member Join Date: Jan 2006 Location: Toronto, CANADA
Posts: 39
![]() | i've always wondered how to do this with external style sheets aswell... golive automatically gives you an external style sheet... would you recommend to use other wise when creating these classes |
| |
| | #4 (permalink) |
| NamePros Member Join Date: May 2006 Location: India
Posts: 51
![]() | yes u can either edit the the css file which is created with golive or u can use any other css file it doesnt make any difference till the time u get the output as ur liking ... i usually prefer one style sheet for design and one for form element styling |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Nov 2005 Location: CA, USA
Posts: 400
![]() ![]() ![]() ![]() ![]() ![]() | Thanks Graphix, It worked! Rep added.
__________________ Los Angeles SEO Consultant |
| |