Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a dynamic web project and I already have a default css file included in the project.
CSS
style.css

Now I am trying to add tinyeditor (a rich text editor) which also comes with its own css file.
CSS
tinyeditor.css

When I add this file to my project the whole project style is changing.
So How do I add this file so that there are no conflicts
Posted

Hi I think in tinyeditors css affect in ur project,i mean what css element name u have in style.css the same element name also available in tinyeditor.css also,bcz u not create tinyeditor.css,so open tinyeditors.css and change the css element names or change the style.css element names .

Or exact what u need form tineditor just take needed element only and paste in style.css(merge both css file and make it one css file and remove existing elements,don't repeat existing element )


did u call both css in same page ?i meant both css are try to use in same page for different purpose,pls check ur style.css element with tinedito.css element.i think tinedito.css element call in ur project all place.
 
Share this answer
 
v5
Comments
Guru Swaroop 13-Mar-14 5:01am    
I didn`t understand.. can you please explain?
Guru Swaroop 13-Mar-14 7:04am    
Yeah, now I am not including both the css in same file so there is no conflict, and so I have modified the code as I have mentioned in the below comment. So now what is the way ahead?
CSS conflict is unavoidable in multiple css inclusion. Suggest merge the various css files into one, then sort and clean up the similar rules manually.
If you are unfamiliar with css, read this first: css_syntax[^]
 
Share this answer
 
v3
Comments
Guru Swaroop 13-Mar-14 6:59am    
I understand that I cannot include multiple css files, but I just tried using
<iframe src="RichTextEditor.jsp" width="1200" height="400"></iframe>
and there was no css conflict.

RichTextEditor.jsp contains an

<textarea id="tinyeditor" name="syllabus" style="width: 100%; height: 200px">
${sessionScope.coreCoursesBean.syllabus}
</textarea>

Now I am encountering a new problem...
1. How do I display the String present in coreCoursesBean.syllabus
2. This textarea initially was part of a form (present in syllabusRepository.jsp), but now I have replaced with the iframe and so when I press submit, how do I retrieve the content which is present in this textarea.
Peter Leow 13-Mar-14 7:26am    
This is a new question.
Aravindba 13-Mar-14 11:47am    
hi this is not related to css problem,so u have create new forums and ask ur question
Guru Swaroop 14-Mar-14 2:41am    
Yeah.. I have posted this as a seperate question
http://www.codeproject.com/Questions/744016/How-do-I-retrieve-information-from-an-in-an-html-f
Guru Swaroop 14-Mar-14 2:32am    
Yeah! It is not possible to include multiple external css files.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900