473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SSI kills CSS button

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
Aug 16 '06 #1
1 1485
Haines Brown wrote:
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
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
http://www.hartford-naacp.org/agenda.shtml
Sadly I haven't got time to fully investigate this. But you've got <a>
nested inside <athere, which isn't valid and you've also got CSS
selectors based around <aand 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.
ET1(SS) U.S.S. Irex SS-482
One of the very last Tench class, wasn't it? Just missed combat in WW2
?

Aug 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ryan | last post by:
Hello and sorry for the crosspost, I have a php page that uses sessions. The page has a button that opens a popup window. The popup window is itself a php page and also uses the session. When I...
6
by: Jeff | last post by:
I've searched the web for hours trying to figure out this problem and can't seem to find any pertinent answers. I have a website where the user starts on a login page, puts in their credentials and...
2
by: kaeli | last post by:
Okay, trying to get the for...in loop syntax and obviously doing something wrong. I have a form and a select with options. The explicit indexing I usually use works fine and alerts all the...
2
by: Jeff Thies | last post by:
I have a script with a regex var re = /\/(\w+?)\//; In IE5 Mac, that kills all javascript, anywhere on the page. No errors but no functionality at all. Just the mere presence of that line...
3
by: visual2005beta_developer | last post by:
I have the following problem (especially with the groupname-attribut of the RadioButton-Control) when developing in Visual Studio 2005 Beta. I load an ascx-control in an aspx-page. This...
0
by: John | last post by:
Hi I have this problem on winxp/offixexp machine but not on win2k/office2k machines. I have a main form which has a panel which has a child form. The child form opens a dialog form. When the...
26
by: Jeremy | last post by:
Hi, say we have the code below on a button: <input type="button" class="btn" value="Continue" onclick="if (myform.p_name.value=='') alert('You must enter a name for the folder'); else {...
6
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking...
4
by: Jason Molt | last post by:
Do until bStop = False 'there's some code here 'etc, etc Loop 'some more code here And then, I have a button that sets bStop = False when clicked: the program blows up, fatal exception. What...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.