My container box does not have set height value. And I've got an element inside.
It's natural that the size of container stretch to the content (the element inside), but when I set it to float it does not, It just floats out of the container. Is there a way to set the float that the element still fit to the container, but just go say, to the right side?
Thanks for an answer.
.container {
}
.element {
float: right;
}