Please help me to understand whats going on.
I have html - relevant code:
#sk_head {
display: block;
}
.h_title {
float: left;
}
.h_instr {
float: right;
font-size: 12px;
}
#sk_body {
text-align: center;
padding: 20px;
display: block;
}
#skaiciuokle {
text-align: left;
display: inline-block;
}
<div id='sk_head'>
<div class='h_title'>
<h3>Title</h3>
<h4>More less important title title</h4>
</div>
<div class="h_instr">
<p><a href="{% url 'PGP_instrukcija' %}">Link to user guide</a></p>
</div>
</div>
<form action="" method="post">
<div id='sk_body'>
<fieldset id="skaiciuokle">
<table class="data_entry">
/* table with form for entry data */
</table>
</fieldset>
</div>
I expect page to display everything like this:
But for some reason parent sk_head
div is getting ignored and contend squeezes in between h_title
and h_inst
div's.
I am completely baffled since nearly identical (differences after <fieldset>
level) set for another page is displaying everything as intended.
What I am missing here? Why parent div is getting ignored?