/    Sign up×
Community /Pin to ProfileBookmark

Fitting page to browser

Can anyone tell me the best way (or point me in the right direction) to get a web page to fit 100% in a browser, no matter what the resolution, but also so that the tables dont collapse when the browser size is changed.

At the moment Im making web pages in 800 x 600, so I always have a border on the right when viewed in a higher res.

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@FusionArtworksJul 15.2004 — Set your [B]TABLE WIDTH[/B] attributes to 100%. That way the the web page will fill the screen no matter what the resolution of the users screen.
Copy linkTweet thisAlerts:
@BurnCKauthorJul 18.2004 — But then any tables that have text in them change when the browser size is changed...images too. How to I stop the tables changing size when some one shrinks their browser size ?

Like this forum for example. If you make your browser smaller then you just get scroll bars rather than the page being re-arranged.
Copy linkTweet thisAlerts:
@MstrBobJul 18.2004 — Well, this forum uses fixed width. And you shouldn't be nesting tables or using tables for layout anyway. But a website should be able to resize, methinks. What are you doing that it is absolutely necessary to have a fixed width?
Copy linkTweet thisAlerts:
@BurnCKauthorJul 18.2004 — It doesnt have to be fixed width, I just dont like the way the layout changes when the browser is reduced in size.
Copy linkTweet thisAlerts:
@MstrBobJul 18.2004 — Well, a well designed website SHOULD resize with the browser's size [I]to a point[/I]. When you start getting to 400px, just forget about it. But it should look good un-maximized on a 800*600 screen, IMO. But it should also be able get larger, which is usually easier than downsizing, since I growing number of users have higher res screens. If IE were to EVER implement the webstandards, we could use the CSS atributes

min-width

max-width

min-height

max-height

But since Internet Explorer is evil and won't support CSS, and since 94% of web users use IE, they're useless for now. ? In the meantime, make your widths percentages, and if an annoying border is appearing on the left, use

style="border-left:0px;" in whichever tag is causing the issue.
×

Success!

Help @BurnCK spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...