I am trying to build a two columned layout with a sidebar that always stays on the left side of the page with a main content area that is centered, and when the window is resized, the centered content will eventually bump up against the nav bar, but never move any further left than where it is when they touch (which would be left: 150px).  Can someone help me out?

Here is the CSS:

@charset "UTF-8";
/* CSS Document */

body,td,th {
    font-size: 16px;
    font-family: Verdana, Geneva, sans-serif;
    color: #000;
}

body {
    background-color: #FFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 15px;
    margin-bottom: 0px;
}

#nav {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 150px;
    height: 10000px;
    background-color: #D61D21;
    text-align: right;
}

#nav a:link {
    color: #FFF;
    text-decoration: none;
}

#nav a:visited {
    color: #FFF;
    text-decoration: none;
}

#nav a:hover {
    color: #FFF;
    text-decoration: underline;
}

#main {
    width: 810px;
    height: 810px;
    margin: 0px auto;
}


and here is the html:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;title&gt;Nick Passaro Designs&lt;/title&gt;
&lt;link href="css/index.css" rel="stylesheet" type="text/css"&gt;
&lt;/head&gt;

&lt;body&gt;

    &lt;div id="nav"&gt;
        &lt;a href="index.php"&gt;&lt;img src="assets/marklogo.jpg" width="150" height="97" border="0" alt="Nick Passaro Designs"&gt;&lt;/a&gt;
        &lt;p&gt;&lt;a href="portfolio.php"&gt;PORTFOLIO&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="logos.php"&gt;LOGOS&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="print.php"&gt;PRINT&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="web.php"&gt;WEB DESIGN&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="photography.php"&gt;PHOTOGRAPHY&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="contact.php"&gt;CONTACT&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
    &lt;/div&gt;

    &lt;div id="main"&gt;
        ENTER CONTENT HERE
    &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;


Any help is greatly appreciated!


Question: Android setOnItemClickListener
Answer: bbalazs is right. I would like to put it more precisely: If you have a view A as a child of a view B and A is by default clickable(button f.e.), than setOnItemClickListener won't work on B.
It is pure magic, but it works so.