Making stylesheets (CSS) with self-adjusting height

S

slawek

Hi i have following stylesheet:

..linklist
{
width: 100%;
font-size: 75%;
background: #EEEEEE;
margin: 5px;
height: 300px;
overflow: auto;
}

I want to display a container which is maimum 300px width - when there is
more content in it - it displays scrollbars, if there is less content in
it - it adjust that it has < 300px.

thanx for help excuse my poor english ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top