Jump to content

Floating Elements


MarkT

Recommended Posts

Hello,

Haven't been the best at CSS, but I've got a website that uses 2 floating elements, with auto adjusting sizes, next to each other.

 

Whats the code to stop the float, for example, an auto height adjusting div, with the floats inside it, it doesn't fill out the div.

 

Is there a code to stop it? I think it's clear or something. Can't remember.

Link to comment
Share on other sites

If the element containing the floated elements has overflow set to "hidden" or "auto" it will expand to take the height of all the elements it contains.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...