I'm currently going to school and I've started to use html for my study notes. I have 1 html for each chapter and each extra assignment. When exam time comes around, I copy each html into a big html. This works but the problem is when I edit something. Sometimes the individual chapters get edited and sometimes I edit the big file. So this becomes a problem.
Using some of the code I've found on this site, I'm able to load chapter01.html to display in full using iframes. But I can't get chapter2.html to fall in line after chapter01. Combining them makes it easier to do searches and get an ereader to read everything. Our last exam had chapters 1,2,3,9,17, and 3 additional assigned sections.
The files are held locally in my computer or on a jump drive and I use VSCode for editing. I'm a beginner and have done enough to do what I needed from watching tutorials. Until this problem came up. I tried using flexbox as the iframes containers but don't understand it enough.
Just to clear things up. I want to fully load the first html. After that, I want to fully load the 2nd html after the first. And so on preferably without using javascript since I still have to learn this but I'm willing to
Any help would be appreciated.
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
.content1 {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.content2 {
position: relative;
left: 0;
right: 0;
top: 0;
/* bottom: 0; */
}
iframe {
width: 100%;
height: 100%;
display: block;
}
<!-- <div class="content1"> -->
<iframe class="content1" frameborder="0" src="ch03 default done.html" frameborder="0"></iframe>
<!-- </div> -->
<!-- <div class="content2"> -->
<iframe class="content2" frameborder="0" src="ch06 default done.html" frameborder="0"></iframe>
<!-- </div> -->
</body>
Some things are commented out because I was testing ideas such as inserting the class into the iframe instead of using the div container, seen above. I've tried other things and came up with different results and I'm not sure how to explain those.
Thanks for any help you can give.