table shrinking

Thread Solved

Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

table shrinking

 
0
  #1
Aug 3rd, 2006
well the problem i have is that when i use tables on every diffrent screen the cells change their shape to fit the screen so all the text is wraped accordingly. is it possible to stop table from shrinking at a certain point so that the text wont wrap more to screw up the page. I am not very skilled at CSS but know little. any idea on how i can fix this problem...
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: table shrinking

 
0
  #2
Aug 3rd, 2006
That's what CSS is for: positioning, sizing, and styling HTML elements. It sounds like you're either not sizing your table elements, or if you are, you're using percentages.

Instead, you should provide CSS rules for the table, tr, and td elements, using absolute pixel measurements.

For example:

HTML and CSS Syntax (Toggle Plain Text)
  1. <style type="text/css">
  2. table {width: 500px;}
  3. </style>
Place that in the head of your document, and any table will be 500 pixels wide, no matter the browser window size or screen resolution.
Last edited by tgreer; Aug 3rd, 2006 at 12:51 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: table shrinking

 
0
  #3
Aug 3rd, 2006
What would you suggest the most common width size for a table with least comflicts with computer resolutions. as my screen resolution is 1280 x 1024 px so i see almost every website fine but that is not with everyone and i am trying to figure what size should my table should be so there are less chances of scroll bars popping up.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: table shrinking

 
0
  #4
Aug 3rd, 2006
I suggest 1024x768 for most sites. I do a lot of work for government and financial institutions, which tend to lag behind the general public, so for them I try to work with 800x600.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 1798 | Replies: 3
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC