Solved

how to give html table minimum width in asp.net

Posted on 2009-07-14
3
339 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now