Ignore CSS in a section of a webpage?

Discussion in 'HTML' started by Woody, Sep 11, 2003.

  1. Woody

    Woody Guest

    Hi,

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

    Thanks
     
    Woody, Sep 11, 2003
    #1
    1. Advertisements

  2. Woody

    rf Guest

    "Woody" <> wrote in message
    news:3f602934$0$15134$...
    > 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.
     
    rf, Sep 11, 2003
    #2
    1. Advertisements

  3. Woody

    Woody Guest

    "rf" <> wrote in message
    news:cYV7b.94206$...
    >
    > "Woody" <> wrote in message
    > news:3f602934$0$15134$...
    > > 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.
     
    Woody, Sep 11, 2003
    #3
  4. Woody

    Woody Guest

    >
    > 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.
     
    Woody, Sep 11, 2003
    #4
  5. Woody

    rf Guest

    "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.
     
    rf, Sep 11, 2003
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henri
    Replies:
    9
    Views:
    2,216
    Toby Inkster
    Feb 22, 2005
  2. Replies:
    1
    Views:
    699
  3. Le Souricier Gris

    CSS Problem : width=50% in div section

    Le Souricier Gris, Jun 4, 2007, in forum: HTML
    Replies:
    0
    Views:
    433
    Le Souricier Gris
    Jun 4, 2007
  4. Paul
    Replies:
    14
    Views:
    1,222
    Alexey Smirnov
    Jun 19, 2008
  5. Rob Meade
    Replies:
    6
    Views:
    472
    Rob Meade
    Mar 1, 2004
  6. sifar
    Replies:
    5
    Views:
    740
  7. soren625
    Replies:
    2
    Views:
    702
    soren625
    Dec 12, 2006
  8. kampy
    Replies:
    9
    Views:
    670
    Steven D'Aprano
    Oct 19, 2012
Loading...