I have created this HTML page, but I am facing an issue where the hyperlinked sections overlap with the static header when clicked on. I want all linked sections to appear below the header and each section to have different dimensions within the iframe.
Is there a way to set a fixed starting point for the main content on the page so that all hyperlinked sections start from that point only?
Here is the HTML code snippet:
<html lang="en">
<head>
</head>
<style>
<!-- Styles for header and menu bars -->
</style>
<body>
<!-- Main content structure with header, menus, and linked sections -->
</body>
</html>
Illustration of the issue faced:
When clicking on link2
, instead of appearing just below the static header, it merges with the header section: [Image Link]
Expected behavior: [Image Link]
Similarly, clicking on link3
causes the linked section (link-3) to merge with the header section, resulting in a partial display.
[Image Link]
Desired outcome: [Image Link]
Thank you.