473,721 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TABLE column width problems

I am creating a table and inserting an iframe inside a cell for which
the width depends on the screen size.
The table has 7 columns and the fourth column is resized depeding on the
screen size... here is my complete definition.

<table style="HEIGHT: 472px" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<tr height="1">
<td width="10"></td>
<td width="178"></td>
<td width="16"></td>
<td width="14"></td>
<td></td>
<td width="10"></td>
<td width="11"></td>
</tr>
<tr height="10">
<td width="218" background="Bor der1.gif" colSpan="4" </td>
<td background="Bor der2.gif"></td>
<td width="21" background="Bor der3.gif" colSpan="2"></td>
</tr>
<tr height="16">
<td width="10" background="Bor der4.gif"></td>
<td width="178" rowSpan="2"></td>
<td width="16" background="Bor der5.gif"></td>
<td bgColor="white" colSpan="3" rowSpan="2">INS ERT POINT</td>
<td width="11" background="ima ges/Border6.gif"></td>
</tr>
<tr>
<td width="10" background="Bor der4.gif"></td>
<td width="16" background="Bor der7.gif"></td>
<td width="11" background="Bor der8.gif"></td>
</tr>
<tr height="25">
<td width="218" background="Bor der9.gif" colSpan="4"></td>
<td background="Bor der11.gif"></td>
<td width="21" background="Bor der12.gif" colSpan="2"></td>
</tr>
</table>

The table works exactly the way I intend it to. Te variable size cell has
a rowspan=2... However, if I replace the text INSERT POINT above with an
IFRAME (or any control for that matter) the columns change their widths.

Any help would be apprecieated.

Jeronimo
Nov 18 '05 #1
1 12281
Don't forget to try to force the table cell widths. Setting a background gif
doesn't actually do this and the table cell will still try to collapse (not
to mention a background for a table cell isn't supported in all browsers.
You're better off actually making the backgrounds as actual images in the
table cell and setting the widths specifically on both the cell and the
image. That may have a better result as the browser won't attempt to
collapse all the cells since they have an image inside them. Otherwise,
they're just another attribute of the table cell and don't necessarily force
the cell open.

Hope tihs helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Jeronimo Bertran" <je******@bertr an.com> wrote in message
news:Xn******** *************** *********@207.4 6.248.16...
I am creating a table and inserting an iframe inside a cell for which
the width depends on the screen size.
The table has 7 columns and the fourth column is resized depeding on the
screen size... here is my complete definition.

<table style="HEIGHT: 472px" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<tr height="1">
<td width="10"></td>
<td width="178"></td>
<td width="16"></td>
<td width="14"></td>
<td></td>
<td width="10"></td>
<td width="11"></td>
</tr>
<tr height="10">
<td width="218" background="Bor der1.gif" colSpan="4" </td>
<td background="Bor der2.gif"></td>
<td width="21" background="Bor der3.gif" colSpan="2"></td>
</tr>
<tr height="16">
<td width="10" background="Bor der4.gif"></td>
<td width="178" rowSpan="2"></td>
<td width="16" background="Bor der5.gif"></td>
<td bgColor="white" colSpan="3" rowSpan="2">INS ERT POINT</td>
<td width="11" background="ima ges/Border6.gif"></td>
</tr>
<tr>
<td width="10" background="Bor der4.gif"></td>
<td width="16" background="Bor der7.gif"></td>
<td width="11" background="Bor der8.gif"></td>
</tr>
<tr height="25">
<td width="218" background="Bor der9.gif" colSpan="4"></td>
<td background="Bor der11.gif"></td>
<td width="21" background="Bor der12.gif" colSpan="2"></td>
</tr>
</table>

The table works exactly the way I intend it to. Te variable size cell has
a rowspan=2... However, if I replace the text INSERT POINT above with an
IFRAME (or any control for that matter) the columns change their widths.

Any help would be apprecieated.

Jeronimo

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3750
by: nick | last post by:
I found that the width attribute in Mozilla is different in IE. In Mozilla, if the content in dropdownlist's list or table <td> cell is wider than the width attribute, Mozilla just enlarge the width. Anyway to make Mozilla behave the same as IE?
5
169729
by: Jean Pion | last post by:
Dear readers, Can anyone explain how to set column width of a table in ccs. I use the following style in an external stylesheet: table.tbl { table-layout:fixed; border-top: 5px solid #333; border-collapse: collapse; background: #fff; width: 95%} table.tbl td { border-bottom: 1px dashed #33ccff; padding: 2px 5px; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
0
1176
by: John Bankhead | last post by:
In HTML, if I want to set the width of my last column to fill out the page then I can set Width=*. Is there a way to do this using Unit.Parse or Unit.Percentage or the like? In the vein of cell.Width = Unit.Parse("*")? I am aware of the workarounds. Rather I am looking for an answer to this specific question. -- John Bankhead
18
30562
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table dynamic. I have added a filtering mechanism (in javascript) that can be used to hide unneeded rows. However, each time I hide or show rows, the column sizes change, and this doesn't look good. Is there a way that I can preserve the column widths...
2
10402
by: Charleees | last post by:
Hi all, I have a DataGrid with Template Columns..... There are LAbels,Linkbuttons in the Single Row.. I have to set the Constant Column width for those Template Columns in Grid... Wat actually happens is... when the Text size is too big... the column
8
8446
by: hussain123 | last post by:
Hi List, I am having two table one after the another.Even after setting the column width of both the tables the column takes the width of the data in that column. Ideally I want both the table's column width to be same so that one cannot see that it's actually two tables. <table border="1" cellspacing="3" cellpadding="5"> <tr> <td align="center" width="10">Text1</td> <td align="center" width="10">Text2</td> <td align="center"...
0
1097
by: Steve | last post by:
I'm developing an ASP.Net 2 web site using VS 2005 that is using a MasterPage with a Table on it. The table has three columns - each with contentPlaceHolder. After developing the MasterPage, I created a number of Web Forms that reference the MasterPage. On each of the pages, the contentplaceholder for the middle column is a custom content holder. The problem I'm having is that the width of the table column1 on the pages doesn't match...
0
1426
by: Claire | last post by:
Hi, Visual Studio 2003 The application Im writing is skinned and therefore i need to be able to write my own code for manipulating and drawing headers for a data grid outside of the control. I created and populated a dataset (source at end of mail) and bound it to a grid for testing. For the datagrid, I used a tablestyles object mapped to table "box". I add gridcolumnstyles for each column and set the 'Icon' column width to 32
7
3146
by: Tim Ward | last post by:
Where col is a <colelement: col.style.width = "27px"; works fine on Firefox but not on IE. How do you set a column width in IE? (If it matters, the <colis not one that was present in HTML, it was created in the Javascript.) -- Tim Ward
0
8730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9131
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.