This is a discussion on "Center a Swf Help??" within the Web Page Design section. This forum, and the thread "Center a Swf Help?? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Center a Swf Help??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Center a Swf Help??
Hi
I,ve built a site in flash and want to put a swf in dreamweaver, then upload it. I just want to center the swf in the middle of the window all the time. I don't know WHAT code to put in or WHERE to put it. It seems a simple thing but I've looked at the source for various websites and threads but can't seem to replicate what they say. This is the code i got out of my Dreamweaver doc. I'm afraid the validator gave me 13 errors but I didn't know how to put them right, not sure wether they'd effect centering a swf, though.
Regards |
|
|
|
|||
|
Re: Center a Swf Help??
add: align="center" to your code. See in red below.
|
|
|||
|
Re: Center a Swf Help??
Afraid that still doesn't work! Here's the web address:
www.nakedtortoise.co.uk This is the site with the code you gave me. But i can't see any problems with it. Thanks for looking into it Lchad. Any othr suggestions would be much interested. Happy Easter!! Last edited by nutbolt; Apr 6th, 2007 at 12:41. |
|
|||
|
Re: Center a Swf Help??
Happy Easter Nutbolt...
Well you have bigger problems right now then centering.. Your flash isn't working at all... Get that working and then let us know ok! |
|
||||
|
Re: Center a Swf Help??
Here is the problem with the flash not loading. It seems you have linked the swf file incorrectly. Is it centered...YES! Here is the problem I came up with. In your code you stated the link to the swf file as "NakedTortoise.swf".
There is a 404 Page not found error happing on that page. Find where you put that file, and link it in the code to it. Then let us know if you have any other problems |
|
|||
|
Re: Center a Swf Help??
OK, thanks Lchad and JacobHaug. I think I sorted the loading problem
by changing the upper-case to lower. Unfortunately, the original alignment problem still isn't sorted out. I can't see why???? Regards |
|
||||
|
Re: Center a Swf Help??
|
|
|||
|
Re: Center a Swf Help??
Excellent, Thanks Ryan.
Does anyone know how to center it vertically? Something to do with valign: vcenter;, I think But again I don't know where to put it. thanks again Regards |
|
|||
|
Re: Center a Swf Help??
... why dont you just tell him to put <div align="center"></div> jeasus problem solved. Making things so complicated. just surround your code with that and everything will be centered. and if you have to put a margin around it for the top. GOD think easy. I hate tables. Pain in the buttox
|
|
||||
|
Re: Center a Swf Help??
Um. Maybe because that wont work... align="center" won't vertically center anything. And a margin for the top? How is that supposed to work for different browser sizes?
|
|
|||
|
Re: Center a Swf Help??
It's a shame auto margins don't work for the top and bottom really. This sort of stuff would be so much simpler.
Pete. |
|
||||
|
Re: Center a Swf Help??
Yes it would
Not only that, it would make sense. If auto works for horizontal positioning, why doesn't/shouldn't it work for vertical? |
|
|||
|
Re: Center a Swf Help??
Yet another css quirk sent to annoy us and make our lives more difficult. To be honest though even if it did exist, half of todays browsers wouldn't render it properly anyway. And even if most of them did, ie wouldn't.
Pete. |
|
||||
|
Re: Center a Swf Help??
IE6 is at least nice about the auto margin. Even IE5.5 does it with a little shove in the right direction. If only they would've nailed the box model down.
|
|
|||
|
Re: Center a Swf Help??
But did you really expect them to. I mean as much as we all love microsoft we don't quite expect the same from them as we do from others. For example, people raved about ie7 despite the fact that it's rubbish! Well not rubbish but it could have (should have) been better.
Pete. |
|
||||
|
Re: Center a Swf Help??
Indeed. I'm so annoyed IE7 doesn't support more pseudo elements. The input[type="text"] one in particular.
|
|
|||
|
Re: Center a Swf Help??
It's a real pain. It seems the more you know about css, the more you wish you didn't in a way. You have to restrain yourself from just not supporting ie. It's not really an option to do that but I wish it was sometimes. I'm partcularly annoyed at the lack of support for the child and attribute selectors. And what's worse is at the minute, if it don't work in ie6 then it's near enough pointless using it really.
One day though, we'll have pure css and html. No hacks, no filters. It will be beautiful to behold. Pete. |
![]() |
| Tags |
| center, swf |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Div bg images..will not center? | jahphill | Web Page Design | 5 | Jun 2nd, 2008 09:03 |
| how can i center this? | djcritch | Web Page Design | 6 | Feb 25th, 2008 07:06 |
| center | alexgeek | Web Page Design | 1 | Aug 2nd, 2007 03:30 |
| Why Cant i center | Innes | Web Page Design | 7 | Jun 20th, 2007 20:37 |
| just want to center this | ragingmon | Web Page Design | 9 | Dec 29th, 2006 18:07 |