By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

horizontal rule visible and not visible

P: 69
Hi Guys,

Can a horizontal rule be visible and not visible within the <td> tag of a row on a table?
Expand|Select|Wrap|Line Numbers
  1.  <tr>
  2.        <td colspan="4" style="height: 20px; text-align: left" valign="middle">
  3.                 <hr id ="hr" style="width: 75%" visible="false" >                 
  4.          </td>
  5. </tr>
  6.  
I tried the above code and it is not working, the horizontal rule is always visible.
i attached an id to it because i wanted to code when it should be visible or not in .Net
May 20 '08 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
As far as I can test the following works in IE but not in FF, but I don't know the reason because in my opinion the visibility style tag is standard CSS.
Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.     <td colspan="4" style="height: 20px; text-align: left" valign="middle">
  3.     <hr id ="hr" style="width: 75%" style="visibility:hidden;" />
  4.     </td>
  5. </tr>
Ronald
May 20 '08 #2

P: 69
thank you

it worked
May 20 '08 #3

ronverdonk
Expert 2.5K+
P: 4,258
thank you

it worked
You are welcome. See you around next time.

Ronald
May 20 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.