Example #4: maximum width for the floating element

With the option set maximum width of the floating element, the width setting will be overruled if applicable. The same goes for the minimum width (see example #3).
This demo only works on screens wider than 768px. Yours isn’t :(

Please enlarge your window, or view this page on another device.
This section is 50% of the width of the SmartFloat stack below.
This section has a width of 200px – the maximum width of the floating element in the SmartFloat stack below.
This is the floating element of the SmartFloat stack. It’s width is set to 50%; its maximum width to 200px.

Because the maximum width of this element (200px) is less than 50%, the 50% is overruled.
This is the wrapping element of the SmartFloat stack.

On screens wider than 768px, this element wraps around the element on the left (the floating element).

On smaller screens, this element is shown below the floating element.

Some filler text to make the floating element bigger than the wrapping element: Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Change the width of your browser window to see the responsive characteristics of the SmartFloat stack.
© 2015-2017 Marathia Web Design | Contact