Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get an image to show in the navbar?
    primarykey
    data
    text
    <p>I am trying to get an image to show for the background of my navigation bar, I have looked at several samples of code and examples on this site and elsewhere but, I am having little luck fixing my mistakes. </p> <p>This is the markup:</p> <pre><code>&lt;!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"--&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link rel="icon" type="img/png" href="Johns Cars Shadow.ico" /&gt; &lt;link href="styles.css" rel="stylesheet" type="text/css"&gt; &lt;title&gt;Johns Cars&lt;/title&gt; &lt;style type="text/css"&gt; #main { box-shadow: 0px 10px 10px 15px #888888; } &lt;/style&gt; &lt;/head&gt; &lt;body bgcolor="#ffffff" marginwidth="95" link="#FFFFFF"&gt; &lt;table id="main" bgcolor="#ffffff" width="1200" align="center"&gt; &lt;tr&gt; &lt;td&gt; &lt;div id="container" align="center" width="1200"&gt; &lt;div id="logo"&gt; &lt;table align="center" width="345" height="167"&gt; &lt;tr&gt; &lt;td&gt; &lt;div&gt; &lt;img src="Johns cars Shadow.png" width="341" height="167"/&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="navbar"&gt; &lt;ul class="cssmenu"&gt; &lt;li id="active"&gt;&lt;a href="home.html"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;Products&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;About&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="last"&gt;&lt;a href="#"&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And this is the css:</p> <pre><code> ul.cssmenu { margin: 0; padding: 0; list-style-type: none; width: auto; position: relative; display: block; height: 30px; font-size: 12px; font-weight: bold; background-image: transparent url(../images/nav.png) repeat-x top left; font-family: Arial, Helvetica, sans-serif; border-bottom: 1px solid #000000; border-top: 1px solid #000000; } ul.cssmenu li { display: block; float: left; margin: 0; padding: 0; } ul.cssmenu li a { display: block; float: left; color: #999999; text-decoration: none; font-weight: bold; padding: 8px 20px 0 20px; } ul.cssmenu li a:hover { color: #4d4d4d; height: 22px; background-image: transparent url(../images/nav.png) 0px -30px no-repeat; } ul.cssmenu li:active a { display: inline; height: 22px; background-image: transparent url(../images/nav.png) 0px -30px no-repeat; float: left; margin: 0; } </code></pre> <p>Any help would be welcomed!</p>
    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