|
| |
|
|
loversinc
Posts: 28 Joined: 4/26/2006 Status: offline
|
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
Posts: 6036 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
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.
< Message edited by Tailslide -- 5/14/2006 16:27:06 >
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
loversinc
Posts: 28 Joined: 4/26/2006 Status: offline
|
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!!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|