Solved

Dreamweaver: Change background image of spry menu bar

Posted on 2012-03-12
8
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 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