How to replace <div> with <td> ?

Discussion in 'PHP' started by chrisj, Oct 28, 2016.

  1. #1
    I'd like to add essentially replace this:

    <td><a href="../"><font>Contact</font></a></td>
    Code (markup):
    with this:

    <div id="flip">Contact</div>
    Code (markup):
    Any help will be appreciated.
     
    chrisj, Oct 28, 2016 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Text editor, remove the line with td, replace with line with div... (questions without detail get stupid answers )
     
    PoPSiCLe, Oct 28, 2016 IP
  3. Usman Ali Dogar

    Usman Ali Dogar Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    <div id="flip"><a href="../">Contact</a></div>
    Code (markup):
    This is one attempt and share complete details to get accurate answer.
     
    Usman Ali Dogar, Oct 29, 2016 IP
  4. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    Sorry, for my lack of details.

    This drop-down script works successfully when you select "Click to slide the panel down or up", here's the script code:
    <script>
    
    $(document).ready(function(){
        $("#flip").click(function(){
            $("#panel").slideToggle("slow");
        });
    });
    </script>
    
    <div id="flip">Click to slide the panel down or up</div>
    <div id="panel">Hello world!</div>
    Code (markup):
    I have a navagation menu in a table. Here's the current code in the table:
    
    <table>
    .....
    <td><a href="../"><font>Contact</font></a></td>
    ....
    </table>
    Code (markup):
    I'm wondering how to change that code so that when the "Contact" text is chosen, the drop down panel appears.
     
    chrisj, Oct 29, 2016 IP
  5. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #5
    
    <span id="flip><font>contact</font></span>
    
    Code (markup):
     
    Einheijar, Oct 30, 2016 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    Rewrite the whole menu, man. There is absolutely no reason for a menu to be in a table, which makes me believe the code is horrible to begin with. Probably in need of a complete rewrite.
     
    PoPSiCLe, Oct 30, 2016 IP