I have this very simple structure :
<div id="header">
<h1>Title</h1>
</div>
<div id="content">
<ul>
<li>Element 1</li>
<li>Element 2</li>
<li>...</li>
</ul>
<div id="stuff">
<p>Other stuff in the content</p>
</div>
</div>
<div id="menu">
<ul>
<li>Menu 1</li>
<li>Menu 2</li>
<li>...</li>
</ul>
</div>
And I wanted to have this behavior with only one stylesheet : When the browser resolution is big, I want to display the #menu on the right of the #content. When it is not, it can go below. So I tried this :
#content
{
float:left;
width:70%;
}
#menu
{
width:300px;
float:left;
}
and it quite works, but on the iPhone, the #content is too large, and there's plenty of white space on the left. I'd really like the screen to fit as much as possible to the #content (the #stuff is not very large).
Any of you CSS ninjas knows how to do this ?
Thanks a lot.
Julien