[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Hiding Table Rows

Posted on 2005-05-09
3
Medium Priority
?
180 Views
Last Modified: 2010-04-09
I'm having problems hiding table rows.  Here's the code...

<html>
<head>
</head>
<STYLE TYPE="text/css">
<!--
.hiddenObj
{  
visibility: hidden;
}
-->
</STYLE>
<body>
[beginning of table]
<table border="0">
<tr class="hiddenObj">
<td>Info</td>
<td>Info</td>
<td>Info</td>
<td>Info</td>
</tr>
<tr class="hiddenObj">
<p>
<td>
<input type="hidden">
<select>
<option value="Input">Input Text</option>
</select>
</input>
</td>
<p>
<td>Info</td>
<td>Info</td>
<td>Info</td>
</tr>
</table>
[end of table]
</body>
</html>

I want to retain the rows, and the input field, but I want it all hid visually from the user.  
0
Comment
Question by:LarryAndro
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
Batalf earned 2000 total points
ID: 13963053
Try to use display:none instead of visibility:hidden,

and display:block if you want to show it again.

example:

<html>
<head>
</head>
<STYLE TYPE="text/css">
<!--
.hiddenObj
{  
display: none;
}
-->
</STYLE>
<body>
[beginning of table]
<table border="0">
<tr class="hiddenObj">
<td>Info</td>
<td>Info</td>
<td>Info</td>
<td>Info</td>
</tr>
<tr class="hiddenObj">
<p>
<td>
<input type="hidden">
<select>
<option value="Input">Input Text</option>
</select>
</input>
</td>
<p>
<td>Info</td>
<td>Info</td>
<td>Info</td>
</tr>
</table>
[end of table]
</body>
</html>

0
 
LVL 1

Author Comment

by:LarryAndro
ID: 13963122
Wonderful!  Works perfectly...
Thx
0
 
LVL 32

Expert Comment

by:Batalf
ID: 13963148
Glad I could help!

Batalf
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question