HighDots Forums  

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

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


Discuss Span and Display. Please, help me in solving this. in the Cascading Style Sheets forum.



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

Default Span and Display. Please, help me in solving this. - 11-08-2007 , 04:45 PM






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


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

Default Re: Span and Display. Please, help me in solving this. - 11-09-2007 , 03:47 AM






On 8 Nov, 22:45, shapper <mdmo... (AT) gmail (DOT) com> wrote:

Quote:
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 Microsoftoft's screw-ups. Find a
tool that _works_ for you, not one that fights you.



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.