I’m adjusting the width of a div element, but the <li> contents inside wraps with the width adjustment and does not overflow. I want the texts to not wrap, but instead to overflow whenever the width becomes smaller.
Is there a property that sets contents behavior like this?
This is my CSS:
.contactPanel{ //the div container
z-index: 2;
left: 660px;
top: -650px;
position: relative;
width: 0px;
padding-left: 10px;
overflow: hidden;
}
.contactPanel ul{
margin: 0;
padding: 0px;
list-style: none;
overflow: hidden;
}
You need to nest one DIV inside:
css: