Solved

Firefox CSS problem with background colour on the menu line

Posted on 2010-11-19
5
330 Views
Last Modified: 2012-06-27
Hi
I am making a site new.adpp-mozambique.org and in order to fix the red background after the superfish menu, i have added a "red" picture and it looks ok in Internet Explorer but not in firefox

Anyone has an idea how I can get this sorted so it sees the background picture in Firefox as well.
If possible I am looking for a CSS way to resolve it as i am not very good in creating new containers/divs etc in the Index.php file

The site is a Joomla site

Regards
Morten

0
Comment
Question by:morten444
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:ali_kayahan
Comment Utility
is there any spaces in pciture name ? is there a link or source code for related page?
0
 
LVL 14

Expert Comment

by:Designbyonyx
Comment Utility
In the superfish.css on line 3 you have the following style:

.sf-menu, .sf-menu * {

}

Use that... add your background color/image there.
0
 

Author Comment

by:morten444
Comment Utility
Hi
The code:
.sf-menu, .sf-menu * {         }

Only change the background of the menu buttons. Not the white area to the right where you have the translation buttons, so that does not work. That white space is not conrtrolled by Superfish, unless I can add a code to superfish to fill 100% of the page

Regarding the picture if it has a space.
To be honest it might not be a picture. I tried that first, but think that I later found a way to set the background to red and it works in IE. I have been looking through for the last 2 hours, but cant find the place in the CSS file, however it only works in IE, not Firefox.

I am still looking into it and will post if i find out more

Any other idears?

Thanks so far
Morten
0
 
LVL 14

Accepted Solution

by:
Designbyonyx earned 500 total points
Comment Utility
The sfmenu is actually filling in the whole width, but since the list items (<li>) inside of it are floated to the left, the sfmenu is not "aware" of how tall it is... so to speak.

Anyhow.  Ignore my last comment, and do this instead:

superfish.css - Line 11

.sf-menu {
  background-color: #C33;
  min-height: 2.5em;
  border-bottom: 1px solid #000;
  line-height: 1;
}
0
 

Author Closing Comment

by:morten444
Comment Utility
Hi
You are a star !!
Thanks for your help
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

772 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

9 Experts available now in Live!

Get 1:1 Help Now