Solved

Table resizing problem

Posted on 2001-07-18
3
149 Views
Last Modified: 2010-04-25
I have a table with the alignment set to centered.
The sizes of all the table cells and the table its self needs to be kept the same throughout the whole site.
I have set the table height and width to the same on all pages, but as soon as I add content the table resizes. Is there a way to lock the tables size so that the content does not change the size.

P.S the actual table width and height that I set does not change even though the actual size of the tabe has.
0
Comment
Question by:bradie
3 Comments
 
LVL 3

Expert Comment

by:MHQ
ID: 6296208
Make sure you don't have the width/height set in %, you need to have them set with a fixed value.

But...
The table will adjust to fit the text if it's to long.

This means that if a single word is wider than the cloumn setting it will widen that column. If The text is to long to fit a column, it will lengthen the table.

Regards,
MHQ
0
 
LVL 8

Expert Comment

by:klykken
ID: 6298221
bradie,
table sizes are a common headache. Can you give us the code for the table? or a url? It probably has a very easy fix.
--
klykken
0
 
LVL 1

Accepted Solution

by:
Dionysus earned 100 total points
ID: 6299238
I always notice this problem when I make a table and then insert something in the first cell and then all of a sudden the table skews really far to one side.  This is largely because the table cells have no individual specs.  What I do to avoid this problem adds a bit of time but works better in the long run.

If I have a table with 2 rows and 2 columns, I'll click in each cell (or select the row and column) as soon as I make the table and set height and  width for every cell.

Then the table keeps its shape.

Occasionally, further measures are necessary, and in that case, I add a transparent spacer gif to hold a table at a certain width or height.. but usually I don't need this.

Hope that helps..
Dion
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now