- This topic is empty.
February 27, 2012 at 7:49 am #36869
Hi, first of all thanks for allowing me to become a member here.
Here is the scenario:
My Browser is (FF) and my screen resolution is 1440 x 900 (its a laptop).
I have a SWF file which i need to embedd in a HTML document – the SWF is1680 X 976.
It needs to be that large for those with more modern screens etc, however, the left and right
sides do not “need” to be visible on smaller resolutions than my own as the content just fades away into black anyway. YES – i need the SWF to be centralized – thats important.
So, scrolling up and down in the browser is a must, but i do not want left – right scroll bars.
I have tried all i can (which isnt much) but i still get the left-right scroll bars?
It is a single enbedded Flash SWF with no other HTML content. All links etc are inside the Flash file.
Can anyone help me please? I know a little about CSS/HTML – just please show me what and where to save them – lol. The Flash file is local so far.
Thanks in advance :)February 27, 2012 at 8:03 am #97574Paulie_DMember
What is the code for the page which will hold the SWF?February 27, 2012 at 8:17 am #97575
There is no code so far – i have tried “tables” and just pasting the Flash into the HTML document – however, this is what it looks like without anything else:
Hope that makes sense?
I don’t need any other content on the HTML document – just the Flash File :)February 27, 2012 at 10:17 am #97579SenffParticipant
My solution would be to wrap it in a DIV with the same dimensions as the Flash file, and wrap that DIV in another DIV with the same dimensions as the screen. Then position the inner DIV absolute so that it’s always positioned in the middle (left position it at 50% and then nudge it to the left with 840 pixels).
Look here: http://jsfiddle.net/senff/VtSTg/ (zoom in and out to see what would happen on smaller and larger screens).February 27, 2012 at 10:19 am #97580Paulie_DMember
I also notice that you don’t seem to have an opening ‘body’ tag.
The div and SWF object would need to be before the closing body tagFebruary 27, 2012 at 10:41 am #97582
How can i thank you both enough??
Senff – that was exactly what i needed!!
Paulie_D – thanks for taking the time to point out my dirty code ;)
- The forum ‘CSS’ is closed to new topics and replies.