Size problem? :(

This is a discussion on "Size problem? :(" within the Web Page Design section. This forum, and the thread "Size problem? :( 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 Feb 26th, 2008, 22:35
Junior Member
Join Date: Feb 2008
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Size problem? :(

Hello everyone,
I have got myself all confused over the whole screen resolution size issue and wondered if I asked a some questions then maybe you could help me.
What code do I need for the website to fit to the screen size viewing and what size pixels do I design the site in?
The problem I am having is the client has a very high resolution and are worried about the amount of blank page surrounding the site, I was trying to design it to fit all screens so designing pretty small and centering howver they would rather it was designed at a higher resolution. So I made the site bigger but still it does not fit their page properly. Please view this link of the site
http://www.sussexexboxers.com/DPS%20...0LTD/index.htm

Don't worry about the design I am trying to sort out the correct size and codes to use before I proceed with the design. Sorry if I have not explained this well, if you have any questions please ask, and thank you all for your time I really appreciate your help so I can continue design!
all the best, westy
Reply With Quote

  #2 (permalink)  
Old Feb 26th, 2008, 23:04
Ed Ed is offline
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 699
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

For a website to fit all resolutions, you should use fluid values.

For example, 800px will always be 800px on all screen resolutions. That's 800 small dots across the screen. Pixels are not fluid.

To make a site fluid, you should use values like % and em.
They'll will change depending on the screen resolution.

If you were to set the width of a page to 50%;
  • It would be 512px wide on a 1024x769 Resolution
  • It would be 640px wide on a 1280x800 Resolution
  • It would be 400px wide on an 800x600 Resolution
And so forth.

The Same goes to 'em'. A screen resolution has a certain size for 1em. On all resolutions, 4em will be 4 sizes larger than the pixel size 1em is set for on that resolution.

So, if 1em was set as 8px on an 800x600 Resolution;
  • 5em would be 13px
  • 12em would be 17px
  • 7em would be 14px
And so forth.

If 1em was set as 12px on an 1024x768 Resolution;
  • 5em would be 17px
  • 12em would be 21px
  • 7em would be 19px
And so forth.


As you can see, you should only have to set it once, and on different resolutions, everything should display relative to each other.

Hope this helps,
Ed

NOTE: This is a rough explanation, this will work, but examples are not accurate.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
  #3 (permalink)  
Old Feb 27th, 2008, 10:25
Junior Member
Join Date: Feb 2008
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Hi Ed,
Thank you very much for your reply!
Just to confirm before I get stuck in..... if I put in the code
body {
margin: 0px 0px 0px 0px;
padding:0px;
width:50%;
}
And design the site 640px wide (cos i think they have 1280x800) the website will automatically adjust to the size (even if i use tables?). Does this mean if people on different screen resolutions come and visit the site it will adjust to their sizes too?
Westy
Reply With Quote
  #4 (permalink)  
Old Feb 27th, 2008, 13:43
Ed Ed is offline
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 699
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Yes, if you set it to 50%, it should cover half a person's screen no matter what resolution you're on.

It's the same with 100%. It will cover their whole screen no matter what size or resolution they are on.

I'm glad to help.

Feel free to post again if you're having problems with anything,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
  #5 (permalink)  
Old Feb 27th, 2008, 14:36
Ed Ed is offline
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 699
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Thread Moved to CSS Section.
This thread is now related to Cascading Style Sheets.

Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
  #6 (permalink)  
Old Feb 27th, 2008, 21:58
Junior Member
Join Date: Feb 2008
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Hi ed, sorry if posted in wrong place.

I put the code below in to the css style sheet

body {
margin: 0px 0px 0px 0px;
padding:0px;
width:100%;
}

Then in html to test it i had a table size 1000px (pretty big) but when preview it doesn't fill whole screen??

My friend has a high resolution screen at least 1280 by 800 and they would rather that screen is filled up with content rather than smaller and center so that it fits in with other resolutions. Do you think I should just design the site to fit the high resolution or could someone please help me with script for a better method.

Thanks again
Reply With Quote
  #7 (permalink)  
Old Feb 27th, 2008, 22:10
Ed Ed is offline
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 699
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Um, well. The body is the whole site, what's visible to the user, from top to bottom, left to right.

We don't want to be using pixels. They are not fluid as stated in my first post.

You should give the table an 'id' and then set the width to 100% in your CSS. You should do this since the body of your page is usually 100%, and it's what's inside it you need to change.

HTML: Select all
#table1 {
width: 100%
}
I suggest reading up on this tutorial before you attempt anything more.

Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
  #8 (permalink)  
Old Feb 27th, 2008, 22:33
Junior Member
Join Date: Feb 2008
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Size problem? :(

Thanks Ed you're a diamond! I appreciate your help.
You know when you been at computer too long you can't remember the simple things I really needed to be pushed in the right direction!!
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
CSS Relative <DIV> Size Problem andycain Web Page Design 6 Nov 29th, 2007 14:32
File size and quality Problem robukni Flash & Multimedia Forum 4 Apr 28th, 2007 03:19
Website Display Size Problem? ugadawgvi Starting Out 16 Apr 9th, 2007 17:47
body font size problem samv Web Page Design 6 Feb 21st, 2007 11:55
Stupid little TD size problem theotherlight Web Page Design 2 Aug 5th, 2005 10:17


All times are GMT. The time now is 09:07.


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