View Full Version : Div won't centre for some reason ?

12-08-2010, 09:25 AM
Hi All,
I'm sure this is a simple thing but I have inserted some script for a flashy banner just under the heading of my site at www.jsmobilebeautytherapy.co.uk (http://www.jsmobilebeautytherapy.co.uk), I have wrapped it in a div and set the width to 494 pixels the width of the text script and then applied margin auto to the left and right in the css !
For some reason its not in the centre of the page however when I tried it on my laptop and previewed it it worked fine !, can anyone explain what I have done wrong please !!!!
I doesn't seem to have applied the css, is it an hierarchy thing possibly within the css ?

Cheers Nick C :confused:

12-08-2010, 09:35 AM
the width of your flash_text_wrapper div (494px) is not the same as the flash object width (565px), so that's why it's not center.

12-08-2010, 09:41 AM
What an idiot I am !!!!!
Thanks for clearing that up, silly oversight as usual !

Nick C :grin: