I know how to make a fixed+fluid column layout (and there are many examples online). But, unfortunately, all the examples I know about have first fixed column and then the fluid column in the HTML code, something like this:
<div class="my-layout">
<div class="my-fixed-col">This is fixed column</div>
<div class="my-fluid-col">This is fluid column</div>
</div>
Could somebody provide me a way how to create this layout with fluid column first in the HTML and the fixed afterwards, something like this:
<div class="my-layout">
<div class="my-fluid-col">This is fluid column</div>
<div class="my-fixed-col">This is fixed column</div>
</div>
By the way, the fixed column is on the left.
Reasons for doing it:
- My
<h1>tag is in the fluid column, so I would like to have it closer
to the top of the page - For the responsive-design purposes I would
like to have the fluid column on the top on the smaller screens.
Try this one- Fluid and fixed plus header and footer included.
HTML:
CSS: