Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6861727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:34:19+00:00 2026-05-27T02:34:19+00:00

I have a table like this: <table cellpadding=0 cellspacing=0 border=0 > <tr > <div

  • 0

I have a table like this:

<table  cellpadding="0" cellspacing="0" border="0" >
    <tr >

        <div id="div_1c">
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_open_c.gif" alt="" /></td>
            <td class="t15CurrentTabCenter"><span>Urlap megjegyzések</span></td>
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_close_c.gif" alt="" /></td>
        </div>

        <div id="div_1nc">
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_open.gif" alt="" /></td>
            <td class="t15TabCenter" onclick="zfocus_Div('DIV_MEGJEGYZES','div_1c')" ><a href="#TAB_LINK#">Urlap megjegyzések</a></td>
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_close.gif" alt="" /></td>
        </div>

        <div id="div_2c">
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_open_c.gif" alt="" /></td>
            <td class="t15CurrentTabCenter"><span>Üzemviteli munkák</span></td>
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_close_c.gif" alt="" /></td>
        </div>

        <div id="div_2nc">
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_open.gif" alt="" /></td>
            <td class="t15TabCenter" onclick="zfocus_Div('DIV_UZEMVITELI_MUNKA','div_2c')"><a href="#TAB_LINK#">Üzemviteli munkák</a></td>
            <td><img src="#IMAGE_PREFIX#themes/theme_15/tab_close.gif" alt="" /></td>
        </div>

      </tr>
</table>

Plus some Javascript code:

<script language="javascript" type="text/javascript">
function zfocus_Div(pActiveTab,pActiveDiv)
{
   html_HideElement('AAA');
   html_HideElement('div_1c');
   html_HideElement('div_2nc');
   html_HideElement('div_2c');

   html_HideElement('DIV_MEGJEGYZES');
   html_HideElement('DIV_UZEMVITELI_MUNKA');

   html_ShowElement(pActiveTab); 
   html_ShowElement(pActiveDiv);   
}

</script> 

I execute the following code in the onload event of the page:

<script> zfocus_Div('DIV_MEGJEGYZES','div_1c') </script> 

After the execution, none of the divs in the table get hidden. Can somebody please explain what the cause for this might be? As far as I know, the divs can be used within a table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:34:19+00:00Added an answer on May 27, 2026 at 2:34 am

    That’s because the div elements will actually end up outside the table.

    You can’t have div elements (or any non-table elements) inside a table except inside td or th elements. If you try that, the browser will try to correct the code, either by removing the illegal elements, or move them outside the table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several forms like this: <table width=100% border=0 cellpadding=0 cellspacing=0 class=table_std> <tr id=exam_String_newValue_row>
I have a table that looks like this <table cellpadding=1 cellspacing=0 width=100% border=0> <tr>
I have HTML like this: <table width=600 border=0 cellspacing=0 cellpadding=3> <tr> <td width=25% align=center>milk</td>
I have a table like this: <table id=myTable cellspacing=0 cellpadding=10 border=0 width=100%> <tbody> ....
I have a table with a code like this: <table cellpadding=6 rules=groups frame=no> <thead>
I have a table as follows <div id=div13 class=ctnr> <table id=mainTable13 class=dtable cellpadding=3 cellspacing=1
I have the following: <ul style=width: 300px; list-style-type:none> <li> <table style=width:100% border=0 cellpadding=0 cellspacing=0
I have the following table: <table width=1000 border=1 cellpadding=2 cellspacing=2 bordercolor=#CCCCCC class=WebApps id=addIssue> <tbody>
I have a simple table: <table cellpadding=0 cellspacing=0 style=width:600px> <tr> <td style=width:100px; padding:5px; border:1px
Imagine I have table like this: id:Product:shop_id 1:Basketball:41 2:Football:41 3:Rocket:45 4:Car:86 5:Plane:86 Now, this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.