how to enable 100% display width and height?

2 views
Skip to first unread message

nicolaszein

unread,
May 10, 2008, 12:12:49 PM5/10/08
to SWFObject
I am trying to set the widths and heights of the two divs to 100% but
the swf disappears when it is not an actual number.

In the previous versions this was the way to do it, but i cannot seem
to make it work and i do not see documentation on this issue.

Thanks for the help. Cheers.

nicolaszein

unread,
May 10, 2008, 12:28:11 PM5/10/08
to SWFObject
it seems to work in internet explorer i noticed but firefox is still
displaying a blank page.

skstuff

unread,
May 11, 2008, 2:32:37 PM5/11/08
to SWFObject
I have the same problem. Pixel values work, percentages fail...

Sam Sherlock

unread,
May 11, 2008, 2:57:47 PM5/11/08
to swfo...@googlegroups.com
is this in firefox?

if so I have solved this by sing the following styles  (the first four may not be needed the fourth gets it going)

* {
font-size:100%;
margin:0;
padding:0;
}
* html body {
margin:0;
padding:0;
text-align:center;
}
html, body {
height:100%;
margin:0;
padding:0;
width:100%;
}

/* this is the important bit */
object, embed {
height:100%;
margin:0;
padding:0;
width:100%;
}


2008/5/11 skstuff <sk.s...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages