Re: OT: Php template system and IE css issues
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Fri, 19 Dec 2008 09:21:11 -0500
trookat wrote:
trookat wrote:Jerry Stuckle wrote:C. (http://symcbean.blogspot.com/) wrote:On 19 Dec, 07:39, trookat <troo...@xxxxxxxxxxxxx> wrote:Please bare with me there IS a phpish question here. ( maybe )
I have written a simple template engine that replaces {{body}} {{nav}} (
there are others ) in a html file with generated content.
All generated output is encapsulated with xhtml complient <div> and
<span> tags with appropriately named class tags for css manipulation .
Doing so takes most of the design out of php and into the hands of the
user to use css to handle formatting.
This is all nice and simple for me as I only have to worry about
generating correct xhtml. A friend of mine may have hit a usability snag.
When a extenal link is generated in a post (
[url=http://etc]nicename[/url] or [url]http://etc[/url] ) i generate
links with class='extlink' for css specialization .
My friend realized that my :after {content:url(extpic);} css to generate
a wiki styled img at the end will not work in in ie .
Now I _think_ the way around this is to have a span to allow for ie
browsers to insert a background image <a href class='extlink'>name<span
class='extico'/></a>
( someone please suggest a site / newsgroup dealing with css . googling
for ie hacks is giving me a headache trying to pin them down )
I know ,I would I be better off, just adding the span for those wanting
to cater for IE. But I feel dirty writing a tag JUST to accommodate
style. But I realize 22 uncompressed bytes ,per link , is not going to
break any budgets and there is no point writing a conditional to check
for IE specific output.
Do any of you who do professional work consider this something they have
to just do to get things the way you want?
I have just wasted two days looking at css/JavaScript hacks ? do they
Even work? ( lack of a windows system to test atm and wine is not
playing happy with ie atm )
Meh .This whole post is mainly rhetorical.Any comments ,links , even
sarcasm will be welcome
regards trookat
Conditional comments and behaviours are a better way of dealing with
this than writing browser specific PHP/Javascript but its still a
rather ugly hack. I'd lean towards using a re-writing engine to insert
the image inline in the HTML.
C.
You'll do better in comp.infosystems.www.authoring.stylesheets (I know it isn't a very intuitive name!).
No small wonder that I could not find a related newsgroup. Thanks Kerry
regards trookat
And typos rule he day ! sorry Jerry . I'll just go submit myself to shock therapy to make sure I check my posts before sending them.
No problem!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- OT: Php template system and IE css issues
- From: trookat
- Re: OT: Php template system and IE css issues
- From: C. (http://symcbean.blogspot.com/)
- Re: OT: Php template system and IE css issues
- From: Jerry Stuckle
- Re: OT: Php template system and IE css issues
- From: trookat
- Re: OT: Php template system and IE css issues
- From: trookat
- OT: Php template system and IE css issues
- Prev by Date: Free Games - play free online games
- Next by Date: Re: [newbie] Couple of questions on PHP
- Previous by thread: Re: OT: Php template system and IE css issues
- Next by thread: What can Ruby do that PHP can not?
- Index(es):
Relevant Pages
|