LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-15-2004, 07:56 PM   #1
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Question get maximum browser width


Hello!

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.

Thank you!

Boby
 
Old 07-15-2004, 08:30 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
This can be done with HTML:

Quote:
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.
So for instance: <table width="100%">

(Reference: http://www.primeshop.com/html/jump5.htm)
 
Old 07-16-2004, 03:06 PM   #3
Boby
Member
 
Registered: Feb 2004
Posts: 781

Original Poster
Rep: Reputation: Disabled
thanX man!

Boby
 
Old 07-16-2004, 04:01 PM   #4
whohasit
Member
 
Registered: Nov 2003
Location: Seattle
Distribution: Fedora Core 1
Posts: 34

Rep: Reputation: 15
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.

-w
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling the band width…. shahg_shahg Linux - Networking 1 12-20-2004 02:31 PM
Scrollbar width - how to increase? europe Linux - General 9 12-12-2004 10:29 AM
KDE Panel width mykyl Linux - Software 3 11-08-2003 04:15 PM
Name Width in apache im1crazyassmofo Linux - Networking 1 07-28-2003 03:01 AM
Dividing band width. Ciccio Linux - Networking 2 06-20-2003 12:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration