Kahuki Webmaster Forum and Discussion Community  

Go Back   Kahuki Webmaster Forum and Discussion Community > Website Development & Management > Webdesign & HMTL

Webdesign & HMTL Here you can post all your questions regarding Webdesign, HTML, CSS or DHMTL.



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2006, 05:37 PM
Member
 
Join Date: Jul 2007
Posts: 57
Bert is on a distinguished road
Css Help: How To Cancel Css On a Particular Code?

I have used a css script in the head and thats for anchor lnks and it is applied on al the links on the page, but i wish not to use it on few links is there any class id i should put to ignore the css from the head. or any other way...

Reply With Quote
  #2 (permalink)  
Old 09-26-2006, 05:40 PM
topbiz's Avatar
Rookie
 
Join Date: Jan 2006
Posts: 3
topbiz is on a distinguished road
you will have to distinguish the two types of links. The only way to do that is to add classes to one or both sets of links:

<a href="page1" class="standardLinks">Looks like the standard</a>
<a href="page2" class="specialLinks">Looks special</a>

and then define the styles in the style sheet with:

a.standardLinks{/*styles*/}
a.specialLinks{/*styles*/}

also, if all the links that are supposed to be different are in one div or something, you can just do it all in css:

<div id="myDiv"><a href="page">this is special</a></div>

<style>
div#myDiv a {/*must use a space between the parent tag and child tags*/
/*styles*/
}

Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me with this code weevilboy JavaScript 2 04-25-2007 02:21 PM
cancel Yahoo adwords? Giuseppe Pay-Per-Click Marketing 1 11-06-2006 05:45 PM
Css Help: How To Cancel Css On a Particular Code? DonGigi Webdesign & HMTL 1 09-26-2006 05:45 PM
I have css code on a website telling links to change color and it works. I put this same css code? dondi Webdesign & HMTL 4 06-30-2006 07:44 PM
Can PHP read in source code from another webpage external of the server to which the PHP code is run on? abrahamthomas PHP 5 06-30-2006 01:53 PM


All times are GMT. The time now is 05:39 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0