Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 08:19:49 AM

Pages: [1]   Go Down
  Print  
Author Topic: Tables in HTML  (Read 372 times)
ziange
Spacescooter Operator
*****
Offline Offline

Posts: 39


WWW
« on: November 17, 2011, 11:26:39 PM »

I create html pages for my small business, and I am experiencing great frustrations. I am creating a calendar, and I have tried restricting the cell widths to specific px and % sizes and have tried the same in using style attributes, but nothing I try will prevent the cell from expanding with the text and distorting the calendar format.

Is there a way to absolutely restrict the width of a column/cell in a table?
Logged

MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5219



« Reply #1 on: November 18, 2011, 05:57:12 AM »

A table cell will always expand to fit its content. Use CSS to set an absolute width for a cell, and how to handle extra-wide content (e.g., overflow: hidden;).
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
bryanbell
Spaceship Captain
*****
Offline Offline

Posts: 104


WWW
« Reply #2 on: December 06, 2011, 01:40:59 AM »

You must use CSS for style your table and keep its cells absolute restricted
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: