Peter Beckman wrote:
On Thu, 29 Sep 2005, Ben Curtis wrote:
On Sep 28, 2005, at 4:00 PM, Peter Beckman wrote:
I'm trying to build (as I mentioned earlier) a nice XHTML template
which
designers can then use CSS to make pretty.
Unfortunately, some want to embed video and/or Flash into the page.
Crap.
Now I have to add more divs and I have to add objects. Now display
gunk is
going into my XHTML code when I didn't want it there.
Isn't the video/Flash content, not "display gunk"? Thus, it *should* be
added into the XHTML markup of your page, using the element that was
made for it: object. Then, just use CSS to style or position the object
as you like.
Are there any solutions I haven't thought of? If I was doing this for a
single, static site, no problems, simple, easy. But when I'm designing
XHTML for N+1 CSS files made by different designers, and some who
want to
add video and/or flash in addition to their images+CSS, I can't think of
how to implement it, other than to give the designers the ability to put
custom Javascript files up and auto-include them as well.
Again, I'm guessing that your users are going to want Flash as
*content,* so just train them how to embed Flash in a standards
compliant way. Easy peesy.
Are there any solutions that I haven't considered? I assume you can't:
#myoffer2 { background-image:url(blah.swf); height:50px;
width:50px; }
Now here, you've stopped talking about content and are talking about
display. So you want to make an animated movie of some sort into a
background image? I'm pretty sure you can't have a swf as a background
image in your style sheet. You could place the swf into the div
directly and use positioning to layer the other content on top of it.
Whether its a good idea to have an animated background is another matter
entirely.
Again, it might help to have a real page with a real swf of the sort you
imagine people are going to want to be embedding. I bet they are not
going to want them as background images, in which case your worries are
unfounded. :-)
Zoe
--
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/