Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS div width in IE8
    primarykey
    data
    text
    <p>I'm very new to html and css so feel free to critique any bad practices you see in the code below... </p> <p>I am trying to create a centered column that's 800 pixels across and the banner will be resized to 800 pixels. When view this page in chrome or firefox it looks great. When I view it in IE8 the font is huge, there is a giant empty spot on the right side of the banner all the way down to the bottom, and the size of the "container" will not change no matter what I do in the css file.</p> <p>CSS:</p> <pre><code>body { font-family: Arial; font-size: small; background-color: #FFFFFF; background-image: url(../images/victorianBackground.jpg); background-position: top; background-repeat: repeat; color: #000000; } #container { margin: -10 auto; background-color: #D3CDBA; text-align: left; } html&gt;body #container { width: 800px; min-height:800px; padding: 0 0px; } #banner { width:800px; } #banner img { width:800px; padding:45 0px; } #content { width:500px; padding: 15px; background-color: transparent; } /* Navigation */ #navigation ul { list-style-type: none; width: 800px; margin: 0; padding: 0; } #navigation li { float: left; background-color: #D3CDBA; } #navigation li:hover { float: left; color: #4676A4; background-color: #D3CDBA; } #navigation a { font-weight: bold; text-decoration: none; color: #000000; display: block; padding: 5px; } #navigation a:hover { font-weight: bold; text-decoration: none; color: #992332; } #content a { color:teal; } </code></pre> <p>HTML:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt; &lt;title&gt;Park Avenue Neighborhood Association&lt;/title&gt; &lt;meta name="keywords" content="Park Avenue Neighborhood Association Syracuse New York"/&gt; &lt;link rel="stylesheet" type="text/css" href="../styles/style1.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="container"&gt; &lt;div id="banner"&gt; &lt;img src="../images/banner.jpg" id="banner"&gt; &lt;br/&gt; &lt;/div&gt; &lt;div id="navigation"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="home.html"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="History.html"&gt;History&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Houses.html"&gt;Houses&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="LocalBusiness.html"&gt;Local Business&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="events.html"&gt;Events&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Contacts.html"&gt;Contacts&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="content"&gt; &lt;h2&gt;Content Header 1 &lt;/h2&gt; &lt;p&gt;Awesome Content &lt;/p&gt; &lt;h2&gt;Content Header 2 &lt;/h2&gt; &lt;p&gt;Awesome Content &lt;/p&gt; &lt;/div&gt; &lt;/body&gt; &lt;/div&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload