[SOLVED] How to limit a web page size?

This is a discussion on "[SOLVED] How to limit a web page size?" within the Web Page Design section. This forum, and the thread "[SOLVED] How to limit a web page size? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 25th, 2007, 19:54
New Member
Join Date: Nov 2007
Location: SW Scotland
Age: 45
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] How to limit a web page size?

Hi All
This is my first question, possibly of many........

I'm to create a web site for an assessment at uni, I've only done a small amount of html at the moment, one of the stipulations is that the pages must be restricted to 1024x768, I can see this as being possible by using a frame set up but I don't really want to use frames, what other options to restrict the size do I have? I have done web searches but come up with nothing................ Am I missing something really simple and obvious?

Cheers
Pete
Reply With Quote

  #2 (permalink)  
Old Nov 25th, 2007, 20:00
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to limit a web page size?

That requires the use of CSS. Put all of your page contents into a div like this:
HTML: Select all
<body>
<div id="content">
<!-- All the html for the page -->
</div>
</body>
</html>
And format that div with css like this:
Code: Select all
#content {
height: 1024px;
width: 768px;
}
(Sorry if I switched the numbers!)
That should do it...

Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2007, 20:02
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: How to limit a web page size?

Do not use frames!!
If you show us your code we can tell you what to do, but basically you need to set the width for your container in CSS.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #4 (permalink)  
Old Nov 25th, 2007, 20:02
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to limit a web page size?

See my reply above, Alex! Already posted the code...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #5 (permalink)  
Old Nov 25th, 2007, 20:04
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to limit a web page size?

I may be wrong but you could add:

max-height:1024px;
max-width:768px;

to your CSS

Last edited by dab42pat; Nov 25th, 2007 at 20:05. Reason: SORRY MISSED ABOVE POSTS
Reply With Quote
  #6 (permalink)  
Old Nov 25th, 2007, 20:06
New Member
Join Date: Nov 2007
Location: SW Scotland
Age: 45
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to limit a web page size?

Quote:
Originally Posted by swagner View Post
That requires the use of CSS. Put all of your page contents into a div like this:
HTML: Select all
<body>
<div id="content">
<!-- All the html for the page -->
</div>
</body>
</html>
And format that div with css like this:
Code: Select all
#content {
height: 1024px;
width: 768px;
}
(Sorry if I switched the numbers!)
That should do it...

Cheers
Cheers for that, looks easy enough

Maybe one day I'll have learned enough to help others on here

Pete
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
.mobi web page size webgal Web Page Design 4 Mar 1st, 2008 04:43
web page size Macca Starting Out 15 Jun 1st, 2007 06:34
Best page size? rubyfruit Starting Out 19 Mar 2nd, 2007 23:31
set up - Web Page Size ??? dbarrie Web Page Design 2 Jul 24th, 2006 14:12
size of page aseriouslyfunkydiva Graphics and 3D 1 Nov 16th, 2005 15:10


All times are GMT. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43