HTML Div Tag

zacklovesmac

Honorable
Jan 20, 2014
20
0
10,510
I realise that this is not the perfect place to ask this question but I don't use any other forums. I am a nube to html programming so I was just creating my own website for fun (it's about a made up cinema) and I wanted to have a background and a part in the middle of the page so I used the div tag and aligned it to the centre of the page, however, I felt that it covered too much of the background so I decided to make the div 800 pixels but now it won't align to the center. This is my programming:
<div style="background-color:grey; width:800px;" align="center;";>

Is there anything that I have gotten wrong? If so tell me who to get it right please.
 

pyr0_m4n

Honorable
Feb 4, 2013
950
0
11,360
Without seeing any more code, it looks like you have an extra semi colon towards the end right after center.
<div style="background-color:grey; width:800px;" align="center";>

Try that. Maybe its not the issue, but I've never tried to put a semi colon right there before.