I have defined the following Help Text for a drop down list on a page in oracle APEX :
<html>
<style>
table, th, td {
border:1px solid black;
}
</style>
<body>
<table style="width:100%">
<tr>
<th>Category</th>
<th>Description</th>
</tr>
<tr>
<td>Category1</td>
<td>Description1</td>
</tr>
<tr>
<td>Category2</td>
<td>Description2</td>
</tr>
<tr>
<td>Category3</td>
<td>Description3</td>
</tr>
</table>
</body>
</html>
When I click the question mark to see the help text, the style gets applied to other page items on the page, and I have to refresh the page to reset the style. How can I fix this problem?
table, th, tdapplies the style to all elements of those types, so what else did you expect, and why? If you want a style to apply to a specific element or elements, then give them a class and make the style apply only to that class<html>and<body>tags? This makes no sense. You cannot have more than one set of such tags in a single HTML document. The browser may have been forgiving and ignored this mistake but technically it's completely invalid.