Home › Forums › CSS › [Solved] Problem with fluid layout and position fixed › Reply To: Problem with fluid layout and position fixed
September 25, 2013 at 6:48 am
#151180
paulob
Participant
Hi,
The problem is that the affix class simply adds position:fixed to the element and removes it from the flow. This would be no problem if you could apply a width to the new fixed element (as mentioned in the SO post) but a fixed width will break your layout at certain points.
The only simple solution I can see at the moment without changing the html is to add some code like this:
.panel-default.affix {
left: 0;
margin: 0 13% 0 40%;
position: fixed;
right: 0;
}
It’s not perfect but closer than a fixed width.