SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Guru Raskolnikov's Avatar
    Join Date
    Jul 2003
    Location
    USA
    Posts
    606
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    exclude portion of page from tag css styles

    Is there anyway that i can remove all css styles from a specific table including styles like body, td, tr then still have the rest of the page use the css styles?

    thanks

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    239
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hmmm. Interesting. You mean a way to say table style=null (iyswim)?

    I don't know. I usually just define exactly what I want such an element to have. If you null it then it will have no styles but I suppose you could then add what you needed without having to reset other things that you want as the default. This might be some special use of the inherit property but I don't know it and I don't see it over at W3C.

    I hope someone has an answer for you as I'd like to know this too.

  3. #3
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suppose you could define default styles for a particular class:
    Code:
    table {
      border: 1px solid #000;
      background: #eee;
    }
    
    table.null {
      border: 0 none;
      background: transparent;
    }

  4. #4
    SitePoint Guru Raskolnikov's Avatar
    Join Date
    Jul 2003
    Location
    USA
    Posts
    606
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would that work for the body tag as well. I have some body attributes, and am wanting to nullify those for the single table.

    i just thought of something. This is kind of an indirect way about it, but if you used iframe would that not be considered its own entity and would not have attributes from the original body tag unless you set the iframe css style so.

  5. #5
    Non-Member
    Join Date
    Apr 2005
    Location
    New Zealand
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did anyone ever find a way to do this? I am having problems getting the Google Search box to work on my site

    edit

    nvm
    Last edited by BLazeD; Jul 10, 2006 at 02:10.

  6. #6
    SitePoint Guru Raskolnikov's Avatar
    Join Date
    Jul 2003
    Location
    USA
    Posts
    606
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you wanting the Google box to disapear, or are you just trying to make it look nice without all that gunk.

    it looks to me like your font size may be too big are you using pixel size or are you using reference +/- sizes for the font?

    Ras


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •