How to override the css used in the inserted HTML page?
-
Here is my sample code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> <!-- a:link { font-size: 15px; color: #0000FF; text-decoration: none; } --> </style> </head> <body> <div> <html> <head> <title>Testing css</title> <style type="text/css"> <!-- a:link { font-size: 48px; color: #FF0000; font-family: arial, helvetica, sans-serif; text-decoration: blink; } --> </style> </head> <body> <a href="dummy link">Dummy Click</a> </body> </html> </div> <h1> Outside page insertion</h1> <a href="click this "> Click here... </a> </html> When I access this page, the CSS in the main page is overridden by the CSS in the inner area. I would like to use the main page CSS as it is for the rest of the contents in the page. How do I do that? Plz help me?
-
Answer:
The coding is wrong. You cannot have 2 <heads, bodies> in a HTML document. Correct it, your page will work just fine.
Ravi K at Yahoo! Answers Visit the source
Other answers
hard code the tags in the body
DesignR
Take out the folowing tags. <style type="text/css"> and </style>
TheTruthHurts
Related Q & A:
- How to dispaly HTML page in Silverlight application?Best solution by devproconnections.com
- How to apply custom css to CKEditor?Best solution by stackoverflow.com
- How to Override a private set property?Best solution by Stack Overflow
- How can we reload html page without blinking?Best solution by Stack Overflow
- How to get back to the previous state of the page being on the same page?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.