Current location: Hot Scripts Forums » General Web Coding » CSS » Ignore one statment of css on a single HTML page


Ignore one statment of css on a single HTML page

Reply
  #1 (permalink)  
Old 01-07-04, 12:14 PM
Travelor Travelor is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Ignore one statment of css on a single HTML page

I am wondering how I can ignore some CSS.

On the standard page I have we want the link to be a different color that links you to the bottom of the page, but when loaded in the css, it ignores the html ref and changes the color to the style sheet color.

How can I change it so that the link is the color I want without modifying the entire css look?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-09-04, 06:47 AM
spikemeister spikemeister is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Try adding a style just for the link to take you to the bottom of the page.
I use an id instead of a class in the style so as it only applies to the link you want and nothing else.

so instead of
.bottomlink{yourstyleinhere}

use
#bottomlink{yourstyleinhere}
Reply With Quote
  #3 (permalink)  
Old 01-09-04, 10:22 AM
spikemeister spikemeister is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry never had time to finish my post earlier
so instead of using this example:
<div class="bottomlink">

you would use this
<div id="bottomlink">
Reply With Quote
  #4 (permalink)  
Old 02-04-04, 07:06 PM
daynah's Avatar
daynah daynah is offline
Newbie Coder
 
Join Date: Jun 2003
Location: CA, USA
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Or you can use an inline css definition on the link.

<a href="link.html" style="color:red">my link</a>

That will ignore the global css.
__________________
PHP Princess.net | Daynah.net
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP in HTML Pages? ZeoFateX PHP 19 01-04-06 06:42 PM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
echo foriegn html in static page fergusom Everything Java 4 11-10-03 02:35 AM


All times are GMT -5. The time now is 02:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.