Can't Get Background Image to Appear Again

Hello everyone,

I’m stuck again with this CSS background image thing. On my 2nd menu at Atlanta Review Group™. It looks like it’s at the bottom of the wrapping div when you view the page. It looks like a stray line, but I think it’s there.

this is the code associated with the 2nd background image:


#bMenu{
	background:url(bMenuBG.gif) no-repeat scroll 50% 15px;
	padding-left:50px;
	position:absolute;
	bottom:12px;
}

:injured:

I’m not sure what you are asking here.

You are starting the image 15px down and all that can show in the available height is the top of it. If you increase the height of the element the whole background will show.


#bMenu {
  height: 150px;/* for example*/
}

Okay, it’s appearing now, but I don’t know how to center it. I tried to put width:auto; for bMenu. What attributes are represented when you put


background:url(bMenuBG.gif) no-repeat scroll [B]50% 20px transparent[/B];

Could you update the link you provided so we can see what’s happening now?

If you use left padding, the background will appear all the way to the left. If, instead, you use left margin, the bg wont appear in the margin area. That may help.

It’s been updated.

I’ve fiddled with the styles a bit. Don’t know if this will help. Keep a record of your previous styles before trying these:

#bMenu li {
  float: left;
  list-style: none outside none;
  margin-right: 1em;
  position: relative;
  top: 40px;
}

#bMenu {
  background: url("bMenuBG.gif") no-repeat scroll 50% 20px transparent;
  height: 90px;
  margin: 0 auto;
  padding-left: 26px;
  width: 534px;
}

Unfortunately, I don’t think that worked.

Well I was able to get the whole image to show with the following:


#bMenu{
	background:url(bMenuBG.gif) no-repeat scroll 50% 0px transparent;
	padding-left:50px;
	width:560px;
	margin:0 auto;
	height:120px;
	position:absolute;
	bottom:12px;
}

I’ve lost the spacing between the main list items, though. I’ll update the files in just a minute.