Ho provato con overflow: auto; e fa apparire una scrollbar sul div.
il codice HTML è questo:
Codice PHP:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section id=info>
</section>
<section id=portfolio>
<article>
[url="#info"]Hide Information[/url]
</article>
<article>
<h1>[i]Websites:[/i]</h1>
<ul>
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[*][img]pics/web/r&r.png[/img]
[/list]
</article>
</section>
</body>
</html>
mentre il CSS è:
codice:
section#info{
background: #555;
color: #fff;
width: 320px;
-moz-box-shadow: inset -20px 0px 10px -10px #000;
-webkit-box-shadow: inset -20px 0px 10px -10px #000;
box-shadow: inset -20px 0px 10px -10px #000;
min-height: 1100px;
padding-bottom: 0px;
margin-bottom: 0px;
}
section#portfolio {
color: #333;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
margin-left: 320px;
padding: 10px 0 0 30px;
}
section#portfolio h1 {
color: #000;
margin: 0px;
padding-top: 20px;
}
section#portfolio article {
height: 250px;
border-bottom: 1px dashed #555;
}
section#portfolio article ul{
margin-top: 50px;
}
section#portfolio article ul li{
display: block;
float: left;
list-style: none;
margin-right: 20px;
}
section#portfolio article:first-of-type {
height: 30px;
border-bottom: 1px dashed #555;
}
section#portfolio article:first-of-type a {
height: 20px;
margin-top: 5px;
background: #555;
padding: 5px;
color: #ccc;
text-decoration:none;
}
in pratica section#portfolio dovrebbe allargarsi a destra in base al contenuto anche se diventa più largo della finestra del browser.