?
Solved

Noresizing tables

Posted on 2003-02-19
6
Medium Priority
?
141 Views
Last Modified: 2010-04-09
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
Comment
Question by:oxfeldt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:RichBisset
ID: 7982660
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
 

Accepted Solution

by:
stebesplace earned 200 total points
ID: 7982708
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
 
LVL 2

Expert Comment

by:Kovis
ID: 7983177
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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

Expert Comment

by:AhmadKhatib
ID: 7985653
example:

<table width="200px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
0
 

Expert Comment

by:jatelf
ID: 7991648
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
 

Author Comment

by:oxfeldt
ID: 8010669
Worked perfectly.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question