Note that there are some explanatory texts on larger screens.

plurals
  1. POadding a back ground image to list menu using css
    primarykey
    data
    text
    <p>I've been doing a site for tafe and I've gone over different ways to do this and none of them have worked so far. I am trying to add a button image to a list menu using div id but it just seems not to be working. <a href="http://www.156.onl.checit.info/" rel="nofollow">This demo page</a> is a online version of my page, Image menu is suppose to be on the left hand side with the text over it.</p> <p>I am trying to put a image in a unordered list as a background image and it doesn't appear to be working. I am trying to put it in this part of the css at the very ened</p> <pre><code>#navcontainer ul { padding: 0px; margin-left: 0px; list-style-type: none; width: 200px; display: block; line-height: 34px; background-image: url(images/pg_menu_bg.png); } </code></pre> <p>Here is my html and my css:</p> <pre><code>&lt;body&gt; &lt;div id="wrapper"&gt; &lt;div id="header"&gt;&lt;/div&gt; &lt;div id="navigation"&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;HOME&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;NEWS&lt;/a&gt;&lt;/li&gt; &lt;li&gt; &lt;a href="JavaScript:void(0);"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt; &lt;div id="leftcolumn"&gt; &lt;div id="navcontainer"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;Upcoming Events&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;Members&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;Specials&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="JavaScript:void(0);"&gt;Who is Snap Nature&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="content"&gt;&lt;/div&gt; &lt;div id="footer"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p><strong>CSS:</strong></p> <pre><code>@charset "utf-8"; * { background-color: #6FF; margin: 0px; padding: 0px; } #wrapper { background-color: #F90; width: 960px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #header { background-color: #6F0; height: 124px; width: 960px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #navigation { background-color: #F3F; float: left; height: 25px; width: 960px; } #leftcolumn { background-color: #009; float: left; height: 350px; width: 250px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #content { background-color: #69F; width: 710px; float: left; height: 350px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #footer { background-color: #F00; clear: both; height: 25px; width: 960px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #navigation ul { list-style-type: none; margin: 0px; padding: 0px; width: 960px; height: 0px; } #navigation li { float: left; background-color: #F3F; } #navigation a { line-height: 25px; text-decoration: none; color: #000; background-color: #F3F; display: block; text-align: center; vertical-align: middle; width: auto; padding-right: 10px; padding-left: 10px; padding-top: 0px; padding-bottom: 0px; height: 25px; } #navigation a:hover { color: #999; text-decoration: none; } #navcontainer ul { padding: 0px; margin-left: 0px; list-style-type: none; width: 200px; display: block; line-height: 34px; background-image: url(images/pg_menu_bg.png); } </code></pre> <p>Please help TY Jared</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.
 

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