My goal is to have a navigation bar on the right side of the page, taking up 250px, while allowing the main content to naturally adjust its size based on the window dimensions. I do want the main content to appear before the navigation in the HTML structure, maintaining a left-to-right flow.
I successfully created a left-side navigation with the following code:
#left {
float:left;
width:250px;
background: blue;
}
#right {
margin-left: 250px;
background: orange;
}
Check out my code here on JSFiddle!
Now, I'm wondering how I can achieve a right-side navigation without changing the order of elements in the HTML. Any suggestions?