944,218 Members | Top Members by Rank

Ad:
Aug 3rd, 2006
0

table shrinking

Expand Post »
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...
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster
ashneet is offline Offline
147 posts
since Jun 2005
Aug 3rd, 2006
0

Re: table shrinking

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 3rd, 2006
0

Re: table shrinking

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.
Reputation Points: 10
Solved Threads: 1
Junior Poster
ashneet is offline Offline
147 posts
since Jun 2005
Aug 3rd, 2006
0

Re: table shrinking

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Redirect with pre-sized pop-up code help
Next Thread in HTML and CSS Forum Timeline: link color works in FF but not IE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC