?
Solved

Table resizing problem

Posted on 2001-07-18
3
Medium Priority
?
163 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
[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
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 400 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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