I have a div on my site that contains a list of elements that act like menus. I set CSS width:auto to resize if the menu item is too long. At the moment, it will expand to the right and “push” the rest of my content to the right.
It is difficult to explain, for example, if you go to http://redsquirrelsoftware.co.uk/ and click on the Support menu item, you will see the content moves. I want the div to expand to the empty space to the left of the menu.
The CSS I have for the div at the moment is:
.sidebar1 { float: left; width: auto; min-width: 25%; max-width: 29%; margin-top: 65px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border-radius: 12px; }
Is there any way to expand it? Thanks in advance.
source share