• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Noresizing tables

I have a website built up in tables/iframe. Now my question is, whether it is possible to add something akin to the frame tag "noresize" to a table?
0
oxfeldt
Asked:
oxfeldt
1 Solution
 
RichBissetCommented:
i dont know of such a parameter. I would tend to define the size of the table and then use blank .gif images to space out the columns/tables correctly.

ie.

<table border=0 cellspacing=0 cellpadding=0 width=100>
<tr>
<td><img src="shim.gif" height=1 width=50 border=0></td>
<td><img src="shim.gif" height=1 width=50 border=0></td>
</tr>
<tr>
<td> .....

what is the problem at the moment?
0
 
stebesplaceCommented:
Your best bet is to just make the table a fixed size, PX. That way you can make it whatever size you want, and it never gets touched. If it is in Precentages: i.e. width=100% then whatever the browser window size is, thats how big the page is.

This is just an option. You can go through javascript, but for what reason. Just use the fixed table sizes and call it a day.

-Steve
0
 
KovisCommented:
You can also use fixed layout with CSS.

<TABLE STYLE="table-layout:fixed">

First of all this speeds up the rendering of the table. The first row of the table is the one who rules. All the rest of the rows obey the column widths of the first row. And when the tablelayout is fixed, even long texts don't expand the column width.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
AhmadKhatibCommented:
example:

<table width="200px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
0
 
jatelfCommented:
I agree, the best way to do this would be by using pixls the mark up would look like this:

<table border="0" width="100"> <!-- By removing the % sign you can create a table 100 pixels wide-->
    <tr>
        <td width="33%">top left</td>  <!--It will not matter if your cells are spaced by percent; they should not resize as the window size changes-->
        <td width="33%">top center</td>
        <td width="33%">top right</td>
    </tr>
    <tr>
        <td width="33">bottom left</td>
        <td width="33">bottom center</td>
        <td width="33">bottom right</td>
    </tr>
</table>

as opposed to:

<table border="0" width="50%">        <!--this width tag is what makes the table resize>
    <tr>
        <td width="33%">top left</td>
        <td width="33%">top center</td>
        <td width="33%">top right</td>
    </tr>
    <tr>
        <td width="33">bottom left</td>
        <td width="33">bottom center</td>
        <td width="33">bottom right</td>
    </tr>
</table>

<td width="33%">&
0
 
oxfeldtAuthor Commented:
Worked perfectly.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now