I need to implement the use of .load
in order to load an external page into a div on the current user's page. Does .load
also apply the styles from the current stylesheet defined in that page after loading the content? If not, what alternatives should I consider for achieving this? Here's an example;
<head>
<link ref="stylesheet" href="main.css"/>
</head>
<body>
<div class="section">
<h2>Imagine this div was loaded using .load after the page loaded</h2>
</div>
</body>
If .section
is loaded via .load
, will it inherit the styling from the current page and update that div accordingly, or will it simply load the HTML without any styling applied? If it's the latter, how can I apply styles without resorting to the use of <style>
tags?