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.
Any ways around it? I *could* build a big PHP wrapper, but I don't like
the smell of it. Am I just hosed?
Maybe you could give us a sample page of something with "display gunk" in it.
I honestly don't see why you would need extra divs or any sort of
presentational markup in order to display video or Flash. Objects are blocks
that contain content, just like anything else.
Given this code:
<body>
<div id='container'>
<div id='intro'>
<div id='logo'>
<h1>Hey There</h1>
</div>
<div id='subtag'>
<h2>Hey There</h2>
</div>
</div>
<div id='main'>
<div class='offer' id='offer1'>
<span>Get this now</span>
<div id='myoffer1'></div>
<h3>Supporting text</h3>
</div>
<div class='offer' id='offer2'>
<span>Get this now</span>
<div id='myoffer2'></div>
<h3>Supporting text</h3>
</div>
</div>
<div id='footer'>
<div id='copy'><h5>© 2005 by me</h5></div>
</div>
</div>
</body>
Without changing this layout, and only using CSS, how to I get a video or
a flash animation in there using only CSS? Impossible?
I do understand that I could include a JS file which would put my flash
stuff on the correctly named IDs, but that means I have to give external
developers access to JS as well.
Basically what I'm talking about is similar to a "white label" site -- I
provide the code (php + XHTML), you provide the look and feel (CSS). This
works great if you just want images, but adding video or flash for some
"labelers" and not for others, makes my task difficult.
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.
Are there any solutions that I haven't considered? I assume you can't:
#myoffer2 { background-image:url(blah.swf); height:50px; width:50px; }
Beckman
---------------------------------------------------------------------------
Peter Beckman Internet Guy
[EMAIL PROTECTED] http://www.purplecow.com/
---------------------------------------------------------------------------
______________________________________________________________________
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/