marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWFgenerator and css #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select percentage size of swf
2. not have appropriate css
3.

What is the expected output? What do you see instead?
ie - small swf, firefox nothing.

What version of the product are you using? On what operating system?
latest releases

Please provide any additional information below.

Perhaps swfgenerator could insert the appropriate css ie
style type="text/css">
body{           
   height:100%;
   margin:0;
}
html{
   height:100%;
}
</style>

when percentage size is selected.  It would perhaps save some head 
scratching for those of us who don't speak css very well.

Original issue reported on code.google.com by jamesinj...@gmail.com on 30 Nov 2008 at 9:06

GoogleCodeExporter commented 9 years ago
Sorry this should be an enhancement and should have a low priority.  I hope 
this is 
the right place to report this.  I couldn't find an swfgenerator project page.

Original comment by jamesinj...@gmail.com on 30 Nov 2008 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by bobbyvandersluis on 1 Dec 2008 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by bobbyvandersluis on 1 Dec 2008 at 10:23

GoogleCodeExporter commented 9 years ago
Thinking about the proposed enhancement, I don't think we should inlclude this 
in the
generator, for the following reasons:

1. It is perfectly valid to publish a SWF with 100x100% while you don't want it 
to
fit the viewport. The 100% (or any percentage) indicates that it should fit that
amount of percentage of the containing block level element, Full Browser Flash 
will
be an often used exception on this case, hence the extra style rules.

2. We don't particularly promote in-page styles, we actually prefer external 
linked
CSS files. Outputting in-page style rules will cause many people to use these 
instead.

3. The generated HTML code should either be used as a tempalte or its content 
should
be copy-paste into an existing web page. Full Browser Flash requires that you 
set the
styles for the entire hierarchy of block level elements to your object element
correctly, so it is still easy to make mistakes here.

So, if you would like to use percentages of FBF you should have a certain 
knowledge
of how you should apply things. Our FAQ Q1 can help you in case you don't have 
this
knowledge.  

Original comment by bobbyvandersluis on 9 Dec 2008 at 10:11