I can't get my head around overflow in different scenarios, and what item they apply to....Anyone got a simple analogy they can give me etc?
For instance I know if I have a paragraph and set the width and height and the content spills out, then I can use overflow:hidden to hide the text which makes sense, as you are hiding the overflow.
Now with floats, I understand sometimes you will need to add an overflow:hidden to a ul tag when using a site nav when there are border issues etc.
I also know that overflow will and can get used in other circumstances, but am having problems getting my head round the issue.
Thanks.
For instance I know if I have a paragraph and set the width and height and the content spills out, then I can use overflow:hidden to hide the text which makes sense, as you are hiding the overflow.
Now with floats, I understand sometimes you will need to add an overflow:hidden to a ul tag when using a site nav when there are border issues etc.
I also know that overflow will and can get used in other circumstances, but am having problems getting my head round the issue.
Thanks.
Comment