css question
- Started
- Last post
- 5 Responses
- n8w
how to I force an element not to have any inherited styles?
for example I have a div and I don't want it to inherit any style?
is there something like?
<div style="style:none;"></div>
- Stugoo0
you need to reset the style.... have you styled it elsewhere?
Then if you want to style it you should add a class.
- Stugoo0
if you want to have a complete reset stylesheet have a look at this :
- n8w0
in this case I can't modify the style sheet because it's part of a template I don't have access to .. so I am trying to do it inline
- Stugoo0
ok well if you want to do it then you ahve to either atttach a new stylesheet which will override the stles in place or inline you ahve to write them as such.
<div style="margin0; padding:0; font:.... etc">
- Gordy220
Further to the above, if for some reason inline doesn't look to work, add !important after each style. For example:
<div style="border:0 !important; padding:0 !important;">etc</div>