Solved

how to give html table minimum width in asp.net

Posted on 2009-07-14
3
352 Views
Last Modified: 2013-11-19
I am designing one web page which contains an HTML table.

what i want to do is some how make the html table to take the full available width if the user views this page on a higher resolution.
and if he views this page on a lower resolution then i want to fix width to a fixed number so that it does not shrink after that.

is it possible to achieve?
0
Comment
Question by:ziorrinfotech
  • 2
3 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24852418
use percentage rather than px.

So something like this
<table width="50%"
0
 
LVL 10

Expert Comment

by:jfromanski
ID: 24852431
use css, something like:
<table style="min-width: 780px">...
0
 
LVL 10

Accepted Solution

by:
jfromanski earned 125 total points
ID: 24852459
well, better
<table style="min-width: 780px;max-width:100%">
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

713 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