Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure how far this gets to solving your problem(s), but its a start:</p> <p><a href="http://jsfiddle.net/4JKus/5/" rel="nofollow">http://jsfiddle.net/4JKus/5/</a></p> <p>Using the align attribute in div declarations is considered bad form. You had a stray /div hanging out. Not sure why you are forcing your images and the main container to 100% height.</p> <p>HTML</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;link rel="stylesheet" type="text/css" href="ccoheader.css"&gt; &lt;title&gt;Hello World&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="container"&gt; &lt;div id="tophead"&gt; &lt;img class="logo" src="images/logo.png" alt="logo"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" title="About Us"&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="Biographies"&gt;Biographies&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="Services"&gt;Services&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="Careers"&gt;Careers&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="Contact"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="maincont"&gt; &lt;div class="maincont_col1"&gt; &amp;nbsp; &lt;/div&gt; &lt;div class="maincont_col2"&gt; &lt;img src="images/secondimage.png" alt="image"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS</p> <pre><code>html, body, #container { width: 100%; margin: 0; } #tophead { height: 20%; width: 80%; margin: auto; } #tophead img { width: auto%; } #tophead ul { list-style: none; display: inline-block; font-size: 0; } #tophead li { display: inline-block; } #tophead a { background: #2dbaf0; color: #fff; display: block; font-size: 16px; font-family: "arial"; font-weight: bold; padding: 0 20px; line-height: 38px; text-transform: uppercase; text-decoration: none; -webkit-transition-property: background; -webkit-transition-duration: .2s; -webkit-transition-timing-function: linear; } #tophead a:hover { background: #f8a52b; color: #fff; } #tophead li:first-child a { border-left: none; border-radius: 5px 0 0 5px; } #tophead li:last-child a { border-right: none; border-radius: 0 5px 5px 0; } #maincont { width: 100%; padding-top: 2%; overflow: hidden; } .maincont_col1{ width:20%; float:left; } .maincont_col2{ width:80%; float:left; } #maincont img{ border-radius: 30px; } </code></pre>
    singulars
    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.
 

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