- This topic is empty.
-
AuthorPosts
-
February 27, 2012 at 7:49 am #36869raymond_bMember
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_DMemberWhat is the code for the page which will hold the SWF?
February 27, 2012 at 8:17 am #97575raymond_bMemberThere 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:
Flash Test
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 #97579SenffParticipantMy 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_DMemberI 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 tag
February 27, 2012 at 10:41 am #97582raymond_bMemberHow 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 ;) -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.