ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to work on some homepage and I need a trick. The main table should have the maximum width of the brosers window. So if someone has 800x600 it should automatically take this width, if someone else has 1600x1200 it should get his width...an so on. Also it should work with all or with most of the browsers [mozilla, opera, netscape, konqueror, MsIE, .....] .
Can this be done with HTML or PHP code? Or do I have to use Java or something else? Please help me with this out.
ATTRIBUTES
Before we explore progressive examples, let's cover a few features useful as attributes within the:
<TABLE> tag:
WIDTH=x (pixels or "%") may control the span of a table across the browser window. A pixel value is absolute...if the user narrows the browser window, the table will slide off to the right. A percentage value will cause the table to consume that portion of the width, regardless of window size, and will wrap text in cells to suit. If needed, think about these and specify carefully.
I use a percentage width also .. sometimes 95%, but do development knowing that things usually look best (for most people) sometimes centered and at 800x600.
Doing this, I usually just create a main table that uses 100%, and embed any other tables inside of that table, scaling them accordingly (in percentages), and usually centered unless they are side by side.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.