Opened 15 years ago
Last modified 15 years ago
#4921 confirmed Bug
CKEditor - broken layout in IE when specific CSS is used on a web site
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | IE | Cc: |
Description
It is quite a common scenario when content of a page is placed inside of a div with some id ("main", "wrapper") and CSS rules are defined for that div.
For IE we're creating "accessibility label" using label and fieldset. Unfortunately, it is possible to accidentally change the style of those elements and make CKEditor looking strange or even unusable.
Steps to reproduce
- take the replacebyclass sample
- in the head section add the following:
<style type="text/css"> #main fieldset {padding:20px; margin:20px; width:400px} #main legend {padding:40px; margin:40px; width:400px} </style>
- put the form element inside of
<div id="main">
:<div id="main"> <form action="sample_posteddata.php" method="post"> <p> <label for="editor1"> Editor 1:</label><br/> <textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> </p> <p> <input type="submit" value="Submit"/> </p> </form> </div>
- save the sample and lauch it in IE
- result: the editing area is broken.
It looks like we have problems with the inheritance order of CSS rules, where the in-page styles are overriding the reset rules.