HighDots Forums  

SSI kills CSS button

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss SSI kills CSS button in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Haines Brown
 
Posts: n/a

Default SSI kills CSS button - 08-16-2006 , 08:08 AM






I have a CSS button built up by using shaded borders. For the
button's label I wish to include a string returned by SSI
echo for HTTP_REFERRER. However, by adding the SSI include statement,
the button disintegrates, as if the nesting were being dispaced by the
SSI include statement. Here's the url:

http://www.hartford-naacp.org/agenda.shtml

--

Haines Brown
KB1GRM
ET1(SS) U.S.S. Irex SS-482

Reply With Quote
  #2  
Old   
Andy Dingley
 
Posts: n/a

Default Re: SSI kills CSS button - 08-16-2006 , 08:37 AM






Haines Brown wrote:

Quote:
I have a CSS button built up by using shaded borders. For the
button's label I wish to include a string returned by SSI
echo for HTTP_REFERRER.
OK

Quote:
However, by adding the SSI include statement,
the button disintegrates,
Nope. SSI is ALWAYS transparent to the client. Just look at the static
HTML produced after the SSI has been processed. If that looks OK but
still has a problem, then it's clearly a CSS issue

Sadly I haven't got time to fully investigate this. But you've got <a>
nested inside <a> there, which isn't valid and you've also got CSS
selectors based around <a> and a descendant selector, not a child
selector. Those are certainly going to get awfully confused with
multiple nested <a>.

I'd start by removing that multiple <a>

This code works fine. Re-organise your SSI to produce this instead
(shouldn't be hard)

<div class="bttn">
<a
href="http://www.google.com/url?sa=D&amp;q=http://www.hartford-naacp.org/agenda.shtml">
<span class="a">
<span class="b">
<span class="c">Back</span>
</span>
</span>
</a>
</div>



As a totally separate issue, you're serving XHTML (dubious) and you're
serving XHTML 1.1 as Appendix C (simply wrong). You'd arguably be
better not using XHTML at all (this is up to you), but if you do want
to use XHTML this year, stick with XHTML 1.0 and Appendix C. This is
both valid, as useful as any XHTML, and it works with the browsers out
there.



Quote:
ET1(SS) U.S.S. Irex SS-482
One of the very last Tench class, wasn't it? Just missed combat in WW2
?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.