471,618 Members | 1,153 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Span and Display. Please, help me in solving this.

Hello,

I am working with ASP.NET and one of its controls render as follows:
<span class="Collapse" onclick="ExpandCollapse(this)">
&nbsp;
</span>
<span class="ClickableNonLink"
onclick="ExpandCollapse(this.parentNode.getElement sByTagName('span')
[0])">
This Section
</span>

I want to make the first span disappear and the second to expand 100%
width.
I have no control over the HTML code which is rendered.

So I created the following CSS:
span.Collapse {display: none}
span.ClickableNonLink {display: block}

It works fine in Firefox but in IE7 I get an empty row over the Span
with class "ClickableNonLink".

I have no idea of how to solve this.

Does anyone knows how to solve this?

Thank You Very Much,
Miguel

Nov 8 '07 #1
1 1993
On 8 Nov, 22:45, shapper <mdmo...@gmail.comwrote:
I am working with ASP.NET and one of its controls render as follows:
I have no control over the HTML code which is rendered.
Switch server-side coding platform to one that allows you to control
the output it creates.

Life's too short to waste it working around M$oft's screw-ups. Find a
tool that _works_ for you, not one that fights you.

Nov 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by ste.paoletti | last post: by
5 posts views Thread by Brent | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.