I am using reset css for my application which includes ck editor, i dont want the reset css should be applied for the output of CK editor inside my html page. How to unset the reset css for the particular portion of a page?
Asked
Active
Viewed 391 times
1
-
The short answer is you can't. – Pekka Dec 02 '11 at 10:27
-
Heh, seems I had the same problem once! Duplicate of [Reset CSS for a certain area of the page?](http://stackoverflow.com/questions/1731555/reset-css-for-a-certain-area-of-the-page) – Pekka Dec 02 '11 at 10:27
-
why would you want that anyway? – Andy Dec 02 '11 at 10:44
2 Answers
0
Give the CK output a class. Write your own CSS code after the reset.css code. Refer to the class and give it the properties that you prefer. For example:
index.html:
<p>Normal text formatted by reset.css</p>
<span class="my-format"><p>Output of CK editor to be formatted by my CSS</p></span>
style.css:
@import url("reset.css");
/* My code goes down here: */
.my-format { font: normal 14px georgia,times,serif; }

Geoffrey Hale
- 10,597
- 5
- 44
- 45
-2
You havent quite understood the point of a reset.css, have you?
You cannot apply some CSS to make all browsers read the css differently (like the do before, like padding, margin, lineheight, zoom and other things)

Jan Dragsbaek
- 8,078
- 2
- 26
- 46