HTML/CSS coding problem

I am learning html/css and have coded a simple page which has a banner and should be set to a width of 400 pixels and centered horizontally.
However, the width is not set and the "banner" division is displayed full width in the browser.
Where is my code as shown below, incorrect ? I also attach an image of the view in the FireFox browser.

<!DOCTYPE html>
<html>
<head>
	<title>Page Title </title>
	<style>

		#banner{
		width 400px;  margin 0px auto;font-family:Arial, Helvetica, sans-serif;font-size:24px; background-color:#00FF99
		}
		p {
		margin 20px; padding-left 20px;
		}
	</style> 
	 
</head>

<body>
	<div id="banner">
			<p> Frame Status  </p>
	</div>	
</body>
 
</html>

Open in new window

C--Users-roger-Downloads-Screenshots.JPG
LVL 2
Roger AlcindorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
you missing to place the colon

try this:

width:400px;  margin: 0px auto;font-family:Arial, Helvetica, sans-serif;font-size:24px; background-color:#00FF99

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roger AlcindorAuthor Commented:
Thanks for that, I should have noticed it myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.