Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Ignore CSS in a section of a webpage?

Reply
Thread Tools

Ignore CSS in a section of a webpage?

 
 
Woody
Guest
Posts: n/a
 
      09-11-2003
Hi,

Is it possible to have a small section of a HTML page ignore the CSS
commands for that page? If so how?

Thanks


 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      09-11-2003

"Woody" <> wrote in message
news:3f602934$0$15134$ u...
> Hi,
>
> Is it possible to have a small section of a HTML page ignore the CSS
> commands for that page?


No, not really.

> If so how?


You could put that bit in a div or something then, in a rule that selects
that div, undo all the CSS properties that may apply to it by specifying the
defaults.

What are you trying to do? If you rephrase the problem there may be a better
solution.

Cheers
Richard.


 
Reply With Quote
 
 
 
 
Woody
Guest
Posts: n/a
 
      09-11-2003

"rf" <> wrote in message
news:cYV7b.94206$...
>
> "Woody" <> wrote in message
> news:3f602934$0$15134$ u...
> > Hi,
> >
> > Is it possible to have a small section of a HTML page ignore the CSS
> > commands for that page?

>
> No, not really.
>
> > If so how?

>
> You could put that bit in a div or something then, in a rule that selects
> that div, undo all the CSS properties that may apply to it by specifying

the
> defaults.
>
> What are you trying to do? If you rephrase the problem there may be a

better
> solution.
>
> Cheers
> Richard.


Richard,

Thanks for your response.

What I have is a page that uses a standard CSS layout for the page (colors,
style, link colors etc)
I have some add-in code from an affiliate program that I want to put in a
table on this page, but when I add it in, the text links utilize the CSS for
their colors and it just doesnt work with their add-in code.

Hope that makes sense.




 
Reply With Quote
 
Woody
Guest
Posts: n/a
 
      09-11-2003
>
> Thanks for your response.
>
> What I have is a page that uses a standard CSS layout for the page

(colors,
> style, link colors etc)
> I have some add-in code from an affiliate program that I want to put in a
> table on this page, but when I add it in, the text links utilize the CSS

for
> their colors and it just doesnt work with their add-in code.


Oops i mean the link colors in my CSS look awful when they are applied to
this add-in code.
The add-in code is generated by the owners of the affiliate program, so I
cannot change it in that regard.





 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      09-11-2003

"Woody" <> wrote in message
news:3f602e01$0$2484$ ...
> >
> > Thanks for your response.
> >
> > What I have is a page that uses a standard CSS layout for the page

> (colors,
> > style, link colors etc)
> > I have some add-in code from an affiliate program that I want to put in

a
> > table on this page, but when I add it in, the text links utilize the CSS

> for
> > their colors and it just doesnt work with their add-in code.

>
> Oops i mean the link colors in my CSS look awful when they are applied to
> this add-in code.
> The add-in code is generated by the owners of the affiliate program, so I
> cannot change it in that regard.


Yeah, got it. So, what I suggested applies. you want their stuff to run
under the CSS defaults.

A URL to what you have would help but...

..default {color: black; background-color: white; ...}
..default a {color: blue; background-color: white; ... }
..default a:visited {color: whatever it is; background-color: white; ... }
....

You don't have to use the defaults, just whatever you think looks good.

Then:

<td>
<div class="default">
<include their stuff>
</div>
</td>

Cheers
Richard.




 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
section with in a section config file and reading that config file kampy Python 9 10-19-2012 10:59 PM
CSS Problem : width=50% in div section Le Souricier Gris HTML 0 06-04-2007 01:57 PM
CSS Mozilla: Make Mozilla not ignore height style of an inline element Henri HTML 9 02-22-2005 06:08 PM
Ignore + TEST + Ignore SpooderStank Computer Support 2 04-08-2004 11:26 AM
Searching for Exact Phrase - should I ignore the ignore words? Rob Meade ASP General 6 03-01-2004 11:28 AM



Advertisments