Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > div element taking up space

Reply
Thread Tools

div element taking up space

 
 
dave
Guest
Posts: n/a
 
      11-25-2003
I am hiding the contents of a table cell with
display:none like the following:

When I do this and while hidden the row still takes up
some vertical space. How can I best use div elements to
hide table row while not taking up and vertical space?

thx


<TR>
<TD><DIV id="div1"
style="display:none;">Something</DIV></TD>
<TD>
<DIV id="div2" style="display:none;">
<input
name="dgCompany:_ctl2:txtProjectNumber" type="text"
id="dgCompany__ctl2_txtProjectNumber" class="clsInput" />
</DIV>
</TD>
</TR>
 
Reply With Quote
 
 
 
 
Alessandro Zifiglio
Guest
Posts: n/a
 
      11-25-2003
cant you just set the display mode of the cell as none whereas to adding an
extra element into the the table cell and making that invisible.
"dave" <> wrote in message
news:01dd01c3b37b$7c5b8db0$...
> I am hiding the contents of a table cell with
> display:none like the following:
>
> When I do this and while hidden the row still takes up
> some vertical space. How can I best use div elements to
> hide table row while not taking up and vertical space?
>
> thx
>
>
> <TR>
> <TD><DIV id="div1"
> style="display:none;">Something</DIV></TD>
> <TD>
> <DIV id="div2" style="display:none;">
> <input
> name="dgCompany:_ctl2:txtProjectNumber" type="text"
> id="dgCompany__ctl2_txtProjectNumber" class="clsInput" />
> </DIV>
> </TD>
> </TR>



 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      11-26-2003
Hi dave,

I think you may set the table run at server side. In this way, you can hide
a row with following code:

table1.Rows[1].Visible =false;

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you Pass Mouse Events through DIV element to the DIV element beneath it? CRPietschmann Javascript 1 04-28-2006 07:28 AM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57