Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FocusAndEarnIt

macrumors 601
Original poster
May 29, 2005
4,628
1,113
I'm doing a wordpress site, and I've done SO much and I have one problem.

The header's image. It's in the CSS that's the problem.

Here's the header code in the CSS:
Code:
}
#header {
	top: 20px;
	
	right: 50px;
	
	width: 600px;
	
	height: 100px;
	
	z-index: 1000;
	
	text-align: center;
	
	position: absolute;
	
	background: url("images/badge.png") no-repeat center;
}


Here's the site:
http://try.mjstew.net

I want the top image (mjstew.net photographer, video editor, etc etc) in the middle, not the right.

Help? :eek:
 
Just wanted to note: he fixed the problem by removing the width line. This was in another thread, but I wanted people here to know the results.
 
jsw said:
Just wanted to note: he fixed the problem by removing the width line. This was in another thread, but I wanted people here to know the results.

Glad to hear he got it working. I was at a loss as to what the error could have been! :eek:
 
Ah, you probably saw it when I was trying about a million things, working for hours in the CSS. :eek:

This is the code now:
Code:
}
#header {
	top: 20px;
	
	right: 0px;
	
	left: 0px;
	
	height: 100px;
	
	z-index: 1000;
	
	text-align: center;
	
	position: absolute;
	
	background-image: url(images/badge.png);
	
	background-repeat: no-repeat;
	
	background-position: top center;

}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.