display contents first.

Dear All,
In code below how can show up "contents" first then the "something here"

<table width="100%">
  <tr>
    <td width="33%" >something here</td>
    <td width="33%"  rowspan="3">
       <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td >{contents}</td>
         </tr>
       </table>
    </td>
    <td width="34%" >something here</td>
  </tr>
  <tr>
    <td width="33%">something here</td>
    <td width="34%" >something here</td>
  </tr>
  <tr>
    <td width="33%" >something here</td>
    <td width="34%" >something here</td>
  </tr>
</table>
Is there is any other technic to do so?
==Please a professional answer is required==
ethar1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Timbo87Commented:
Do you mean a time delay? For example, showing contents immediately, then something here a little bit later? Or do you mean giving it a load priority? As of now, since contents occurs first in the page, it should load a tiny bit before something here.
GwynforWebCommented:
Could you be more explicit about what you want, the question is ambiguous. One of your problems to strat with is that you hve more than table in a cell. If you could should schematically show what you would like the table to look like we can do it for you.
sandy12879Commented:
What i understood from ur questn  is that u need  some thing like this

contents               something        contents          

Try out this






<table width="100%">
  <tr>
    <td width="33%" >{contents}</td>
    <td width="33%"  rowspan="3">
       <table  width="100%">
         <tr>
           <td>SOMETHING HERE</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>SOMETHING HERE</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>SOMETHING HERE</td>
         </tr>
       </table>
    </td>
    <td width="34%" >{contents}</td>
  </tr>
  <tr>
    <td width="33%">{contents}</td>
    <td width="34%" >{contents}</td>
  </tr>
  <tr>
    <td width="33%" >{contents}</td>
    <td width="34%" >{contents}</td>
  </tr>
</table>




         
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

prohacxCommented:
Hi there!

Switch the second column (with rowspan=3 and the contents) with the first one (something here) like so:

<table width="100%">
  <tr>
    <td width="33%" rowspan="3">
         <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%">
         <tr>
           <td >{contents}</td>
         </tr>
       </table>

      </td>
    <td width="33%">
            something here
    </td>
    <td width="34%" >something here</td>
  </tr>
  <tr>
    <td width="33%">something here</td>
    <td width="34%" >something here</td>
  </tr>
  <tr>
    <td width="33%" >something here</td>
    <td width="34%" >something here</td>
  </tr>
</table>


Have fun!
prohacxCommented:
In fact, now you have a table with 3 columns (run the code below, I added color to it to clarify it): a red one, a blue one and a black one, and 3 rows.

The first column in the table has a rowspan=3, so it will display down over 3 rows. This means that you do not have to enter this column anymore in the following 2 rows of your table. That's why the following 2 rows have only 2 columns (blue and black).

The first column itself contains 4 tables (grey colored).

Hope this clarifies it a bit!
prohacxCommented:
And here's the code (sorry, I forgot...)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>

<table width="100%">
  <tr>
    <td width="33%" rowspan="3" style="border: 1px solid red;">
         <table  width="100%" style="border: 1px solid #bbbbbb;">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%" style="border: 1px solid #cccccc;">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%" style="border: 1px solid #dddddd;">
         <tr>
           <td>{contents}</td>
         </tr>
       </table>
       <table  width="100%" style="border: 1px solid #eeeeee;">
         <tr>
           <td >{contents}</td>
         </tr>
       </table>

      </td>
    <td width="33%" style="border: 1px solid blue;">
            something here
    </td>
    <td width="34%" style="border: 1px solid black;">something here</td>
  </tr>
  <tr>
    <td width="33%" style="border: 1px solid blue;">something here</td>
    <td width="34%" style="border: 1px solid black;">something here</td>
  </tr>
  <tr>
    <td width="33%" style="border: 1px solid blue;">something here</td>
    <td width="34%" style="border: 1px solid black;">something here</td>
  </tr>
</table>

</BODY>
</HTML>
seanpowellCommented:
Without changing the actual code for the table so that the content rows are coded "before" the something here row (as shown directly above - which you may as well simplify at that point) you can't change where the content gets printed to the screen. More info from you would be required.
ethar1Author Commented:
Dear all,
sorry for ambiguous i cuz.
I means load priority for the contents.
Thanks.
seanpowellCommented:
So you need the "content" cells to display on screen before the "something here" content does?

How much before, and what type of data do all the table cells contain?
ethar1Author Commented:
"content" cell contains tables + text + pictures.
what I need is give the "content" highly priority to load and display then "something here" come after.
it's not mater of delay, don't want make any delay... just load the "contents" first and display it b4 the browser download the rest of the page.

seanpowellCommented:
That's going to be problematic with your layout.

An example:

<td>Left Cell</td><td>Middle Cell</td><td>RightCell</td>

1. The browser must display the contents of the left cell before the middle one, because it needs to know beforehand exactly where the middle cell will end up. The table cells don't "re-align" themselves as the page is displaying. It's entirely determined beforehand as the browser parses the code.

2. Once the broswer has determined the pixel coordinates for each table cell, it then proceeds to display that cells content. If the content is extensive, it will take longer to display.

So, as another example

<td>Left Cell</td><td>Middle Cell with another table inside it</td><td>RightCell</td>

The Middle Cell content will actually take longer to display - the exact opposite of what you're trying to achieve - because there's more information there.

The only "potential" guarantee is to code the content that you want displayed "before" other content. Like this:

<table>
  <tr>
    <td>This will display first</td>
  </tr>
</table>
<table>
  <tr>
    <td>This will display second</td>
  </tr>
</table>

However, if the first table is a large graphic, and the second table is just text, it probably won't do what you need it to do.

One last question:
Why do you need this to happen - from the user's point of view?
ethar1Author Commented:
The reasone is very simple , to show up the contents first.
All the customer needs is the contents, when you show it first it will make him wait till the page loaded.
also the "something here" part is menu+advertising and other stuff.
seanpowellCommented:
I would usually have to setup the page according to the exact content - types of images, compexity of tables, etc.

Without knowing what's going in the page, the best I can offer you at this point is to re-arrange the table structure - while keeping your original layout intact - to have the content cells appear first in the code.

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="33%" height="1"></td>
    <td width="34%" rowspan="2" valign="top">
    <table width="100%">
      <tr>
        <td>{contents}</td>
      </tr>
    </table>
    <table width="100%">
      <tr>
        <td>{contents}</td>
      </tr>
    </table>
    <table width="100%">
      <tr>
        <td>{contents}</td>
      </tr>
    </table>
    <table width="100%">
      <tr>
        <td>{contents}</td>
      </tr>
    </table></td>
    <td width="33%" height="1"></td>
  </tr>
  <tr>
    <td width="33%" valign="top" height="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td width="100%">menu</td>
      </tr>
      <tr>
        <td width="100%">menu</td>
      </tr>
      <tr>
        <td width="100%">menu</td>
      </tr>
    </table></td>
    <td width="33%" valign="top" height="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td width="100%">advertising</td>
      </tr>
      <tr>
        <td width="100%">advertising</td>
      </tr>
      <tr>
        <td width="100%">advertising</td>
      </tr>
    </table></td>
  </tr>
</table>

If you have - or when you have - an online version, I'd be interested to see what's going on in the layout to adjust how the browser is parsing through the code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ZontarCommented:
The page will render more quickly in general if you use stacked tables rather than nested tables.

You might even be able to dispense with the tables altogether:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
  div {position:absolute; top:0%; width:32%; height:100%; background-color:#FFE;}
  div#leftCol {left:0%; }
  div#centreCol {left:33%; margin-left:0.5%;}
  div#rightCol {left:67%; }
  div#leftCol p, div#rightCol p  {height:33%;}
  div#centreCol p {height:25%;}
</style>
</head>
<body>
<div id="leftCol">
<p>SOMETHING ELSE</p>
<p>SOMETHING ELSE</p>
<p>SOMETHING ELSE</p>
</div>
<div id="centreCol">
<p>CONTENT</p>
<p>CONTENT</p>
<p>CONTENT</p>
<p>CONTENT</p>
</div>
<div id="rightCol">
<p>SOMETHING ELSE</p>
<p>SOMETHING ELSE</p>
<p>SOMETHING ELSE</p>
</div>
</body>
</html>
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.