I have a total of 3 iframes: iframe_top
, iframe_left
, and iframe_right
.
My goal is to display the two iframes iframe_left
and iframe_right
side by side.
In addition, I want the iframe iframe_top
positioned above them in a way that aligns the left border of iframe_top
with the left border of iframe_left
and the right border of iframe_top
with the right border of iframe_right
.
So far, I have successfully achieved placing the two iframes iframe_left
and iframe_right
next to each other with iframe_top
above them:
<div id="div_top">
<iframe id="iframe_top" name="iframe_top" src="">
</iframe>
</div>
<div id="div_main">
<iframe id="iframe_left" name="iframe_left" src="">
</iframe>
<iframe id="iframe_right" name="iframe_right" src="">
</iframe>
</div>
However, I am struggling to find a way to properly align them.
I attempted setting the same width for the two divs div_top
and div_main
using CSS:
<style type="text/css">
#div_top {
width: 100%;
}
#div_main {
width: 100%;
}
</style>
Unfortunately, this styling did not have any effect. How can I achieve the desired alignment?