Solved

Dreamweaver: Change background image of spry menu bar

Posted on 2012-03-12
8
445 Views
Last Modified: 2012-03-22
I want to add a background image to the main spry menu. I have the following .CSS code that does not work:

ul.MenuBarHorizontal
{
      margin: 0;
      padding: 0;
      list-style-type: none;
      font-size: 100%;
      cursor: default;
      width: auto;
      background-image: url(../images/buttons/Button_Normal.png) no-repeat;
}
0
Comment
Question by:adimit19
8 Comments
 
LVL 30

Assisted Solution

by:LZ1
LZ1 earned 300 total points
ID: 37714175
Can you post a live link?
0
 

Assisted Solution

by:adimit19
adimit19 earned 0 total points
ID: 37714500
unfortunately not at this point. Is there anything else I can do to help?
0
 
LVL 30

Assisted Solution

by:LZ1
LZ1 earned 300 total points
ID: 37714502
How about the rendered HTML and CSS?
0
 
LVL 8

Assisted Solution

by:Jen0910
Jen0910 earned 100 total points
ID: 37714665
Just a couple thoughts I have from what you are able to share:

Try deleting "width:auto;" or adding a hard value in there and see if that shows your image.

if not, try deleting the "../" before images/buttons/Button_Normal.png. That is forcing your MenuBarHorizontal to start looking for the image 1 directory above the style sheet.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 30

Assisted Solution

by:LZ1
LZ1 earned 300 total points
ID: 37714675
Just to add to Jen0910's remark: You may also need to add a height or float:left as well.
0
 
LVL 12

Assisted Solution

by:Anuradha Goli
Anuradha Goli earned 100 total points
ID: 37724884
Based on the scenario you explained, I understand that the background image for ul tag is not appearing
ul tag with no content doesn't display background image
<ul class="MenuBarHorizontal">content</ul>

Open in new window

0
 

Accepted Solution

by:
adimit19 earned 0 total points
ID: 37734029
the background color was placed under ul.MenuBarHorizontal a. That seemd to solve it
0
 

Author Closing Comment

by:adimit19
ID: 37751589
it worked.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now