css to centre flash (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


loversinc -> css to centre flash (5/14/2006 13:53:14)

hi I am totaly new to this and don't know what I am doing! I would really like to centre my games with css and not with tables like I am currently doing. At the momment it looks ok in firefox but not in Internet Explorer at all resolutions.
http://www.free-online-games-player.co.uk/police-chopper-game.html

any help would be greatly appreciated.

thanks




Tailslide -> RE: css to centre flash (5/14/2006 16:17:45)

You've got a whole load of markup within the head of your document which may well cause you problems - move it all out of the head and into the body of the document and see what happens.

Easiest way to centre using CSS would be to shove everything into a containing div and give that div the rule:

#container {margin:0 auto; text-align:center;}


Then normalise the text align further down in the CSS. Margin 0 auto will put the div at the top of the page in the centre for good browsers and text-align:center will do the same for IE.




loversinc -> RE: css to centre flash (5/14/2006 16:55:58)

i think i have sorted out the head bit.. now doing that for the rest of the site! sorry don't know how to do the above... i've only just started!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625