Connecting Tech Pros Worldwide Help | Site Map

how to invisible div in mozilla

Member
 
Join Date: Oct 2007
Posts: 34
#1: Dec 10 '07
Hi,
I want to invisible one div.
To invisible the <div> i have written like the following

[HTML]<div id="divid" style="display:none" >[/HTML]
But the above code is working in IE, not in mozilla.
What i need to do for that.
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,128
#2: Dec 10 '07

re: how to invisible div in mozilla


i think it should work ... could you post more of your html-code?
Member
 
Join Date: Oct 2007
Posts: 34
#3: Dec 11 '07

re: how to invisible div in mozilla


Quote:

Originally Posted by gits

i think it should work ... could you post more of your html-code?

[HTML]<div id="<%=linkid%>" style="display:none">
//here if i am writing some text then its invisible
<TABLE width=100% class=inputtable cellspacing=0>
<TR class = "inputtd" ><font class="textfont">The Classes for Link :<%=linkname%></font>
</tr>
</TABLE>
</div>[/HTML]

But the table inside my div is visible in mozilla not in IE
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,128
#4: Dec 11 '07

re: how to invisible div in mozilla


hi ...

the following is hidden in my FF:

[HTML]<div id="blah" style="display:none">
<table width="100%" class="inputtable" cellspacing="0">
<tr class="inputtd">
<font class="textfont">
The Classes for Link :<%=linkname%>
</font>
</tr>
</table>
</div>[/HTML]
so i cannot reproduce your error. when i set display:block it is visible so there must be another error ... is there any script that should set the display-property?

could you post a link to a testpage or the entire html?

kind regards
Member
 
Join Date: Oct 2007
Posts: 34
#5: Dec 11 '07

re: how to invisible div in mozilla


Quote:

Originally Posted by gits

hi ...

the following is hidden in my FF:

[HTML]<div id="blah" style="display:none">
<table width="100%" class="inputtable" cellspacing="0">
<tr class="inputtd">
<font class="textfont">
The Classes for Link :<%=linkname%>
</font>
</tr>
</table>
</div>[/HTML]
so i cannot reproduce your error. when i set display:block it is visible so there must be another error ... is there any script that should set the display-property?

could you post a link to a testpage or the entire html?

kind regards

I found out the error.
I did not write my text message in a <td>
When i wrote like the following it is working perfectly.
[HTML]<div id="blah" style="display:none">
<table width="100%" class="inputtable" cellspacing="0">
<tr class="inputtd">
<td> //here is the error I did not write this tag
<font class="textfont">
The Classes for Link :<%=linkname%>
</font>
</td>
</tr>
</table>
</div>[/HTML]
Thanks for your reply.
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,128
#6: Dec 11 '07

re: how to invisible div in mozilla


hi ...

glad to hear you got it working :) ... post back to the forum anytime you have more questions ...

kind regards
Reply