horizontal rule visible and not visible

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmel
    New Member
    • Oct 2007
    • 69

    horizontal rule visible and not visible

    Hi Guys,

    Can a horizontal rule be visible and not visible within the <td> tag of a row on a table?
    Code:
     <tr>
           <td colspan="4" style="height: 20px; text-align: left" valign="middle">
                    <hr id ="hr" style="width: 75%" visible="false" >                 
             </td>
    </tr>
    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
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    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.
    Code:
    <tr>
        <td colspan="4" style="height: 20px; text-align: left" valign="middle">
        <hr id ="hr" style="width: 75%" style="visibility:hidden;" />
        </td>
    </tr>
    Ronald

    Comment

    • phpmel
      New Member
      • Oct 2007
      • 69

      #3
      thank you

      it worked

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Originally posted by phpmel
        thank you

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

        Ronald

        Comment

        Working...