I have page with sidebars. There is a table. I want to show one line on the bottom of screen, no matter how big the table is. This line should has same width as table does.
Here is what I’ve tried, but without success:
<div style="width: 100%; position: relative;">
<table>
...
</table>
<!-- this div will be width as whole page, not as table -->
<div style="width: inherit; position: fixed; bottom: 0;">Wuah!</div>
</div>
Tell me pls some advices how to make it works 🙂
Here is a live example, sidebars included: http://other.dttrading.sk/orders.htm
The problem is that
fixedelements are fixed relative to the viewport, not their parent, and they’ll will inherit the width from the viewport too. You can check that by inspecting the DOM, the fixed footer has the exact same width as the<body>.One possible workaround:
left: 0to left-align the footerz-indexvalues so that the footer is behind the sidebar(Not tested)