neuter all css assigned to an elements

Discussion in 'CSS' started by bono056, Nov 25, 2010.

  1. #1
    how can i neuter all css assigned to an element?
    suppose i work in enviroment that all SPAN element properties defined by a main css file. in one case i want to redesign my SPAN. I always reset all the primary assigned properties, then define some of them again. i want to know if there is another solution to reset them all?
     
    bono056, Nov 25, 2010 IP
  2. MattCA

    MattCA Peon

    Messages:
    14
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add id to that specified span and style it as you want. I use Eric Meyer's reset styles in my own projects.
     
    MattCA, Nov 25, 2010 IP
  3. bono056

    bono056 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, currently i do this, but in this case element inherits styles from main file. & i don't want this happen.

    whats this?
     
    bono056, Nov 25, 2010 IP
  4. MattCA

    MattCA Peon

    Messages:
    14
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You cannot just reset an element, that's why you have to add an id to it and overwrite all styles.

    Eric Meyer's reset styles is a list of elements with unified styles to be used in cross-browser webdevelopment. It does reset all browsers' default values.
     
    MattCA, Nov 25, 2010 IP
  5. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Is your site online? Give us a link.

    Then we can take a look.
     
    CSM, Nov 26, 2010 IP
  6. MattCA

    MattCA Peon

    Messages:
    14
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually I can't post a link (Live links and signatures are not available to you yet (read the FAQ).), but here it is:
    apartamentwladyslawowo.eu/style.css
     
    MattCA, Nov 26, 2010 IP
  7. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #7
    The CSS itself is not enough... :mad:
     
    CSM, Nov 26, 2010 IP
  8. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #8
    Normal behaviour. Get the basics of CSS (child elements inherit from parent elements).

    By the way: CSS reset has nothing to do with this case.
     
    CSM, Nov 26, 2010 IP