Display a lot of information

liunx

Guest
Hi everyone i am currently doing a website in PHP, where i need to display a lot of information from a database. My issue though is with HTML. I was wandering whether you can have a really big table that is bigger than the page i.e you need to scroll sideways to see some of the information. If anyone knows this or can think of a better way of showing the information please could you reply.<!--content-->if you are meaning what i think you are then the answer is simply yes. you can use html width and height to change the size of the table and you can create a table that is bigger that the page, forcing the user to scroll around the page looking for information!<br />
<br />
if you want then you can create an autostretch, thus entitles you to stretch or shrink the table width to match the users page width, <br />
<br />
<br />
<br />
<table width="100%" height="500" cellspacing="0"><br />
<tr><br />
<td width="100%"></td><br />
</tr><br />
</table><br />
<br />
<br />
<br />
does that answer your question?<!--content-->do this:<br />
<br />
<table width="900px" height="500px"> <br />
<br />
instead of:<br />
<br />
<table width="100%" height="100%"><br />
<br />
By using pixels instead of percent, u can go OVER the 100% of the window. Play around with the numbers until it gets to what you want.<br />
<br />
I think this was the answer u were looking for??;)<!--content-->Gosh I didn't realize pixles out-smarted percentages? I would have thought<br />
<br />
<table width="110%" height="110%" border="1"><br />
<tr><br />
<td>&nbsp;</td><br />
</tr><br />
</table><br />
<br />
would work too. Well by golly it does work, so maybe PERCENTS ARE WHAT THE MAN NEEDS.<!--content-->:confused: so percents work too, huh?<br />
whodathunkit...<br />
i should have known.. >__<<!--content-->IMHO<br />
<br />
In the end, I think that we are missing a requirement to see which is the better way to go.<br />
<br />
If we are just looking to have a table that is larger than any screen size that hits the site, then the percentages will work fine.<br />
<br />
If, however, the issue is that you need a minimum amount of horizontal space, then px is the way to go.<br />
<br />
Example:<br />
We are displaying a report in which each record needs 1000px of space to keep each row on one line. <br />
<br />
If we used percentages we would have to include code to replace the percentages depending on the screen resolution to keep the minimum width of the table at least 1000 px.<br />
<br />
If we used the px we could set the table to 1000 px and anyone with a lower res would scroll and those that were over, say 1280 x 1024, wouldn't have a scroll.<br />
<br />
We don't really have the information to see if this is the case, but it seems to make a difference on which would be the better way to go.<br />
<br />
At least that's the way it looks to me. :D<!--content-->*Oops* ;)<!--content-->I think it's ok to have the user scroll to the left and right only if they don't also have scroll up and down. One kind of scrolling is ok, two is bad.<!--content-->yea i agree! it is very annoying.<br />
<br />
i usually use percentages over pixels but whatever floats your boat!<!--content-->Thanks for your reply. I used pixels as for some reason when i used percentages no scroll bar came up. Does look a bit unsightly is width 1800px. Will probably think of other way of displaying info and give users an option between which way they display it.<!--content-->
 
Back
Top