My first website, Issue

This is a discussion on My first website, Issue within the Just Starting Out forums, part of the Web Design category; So I finished my first website and put it up online. Was pretty pleased with it. Then I realised a ...


Reply
 
LinkBack Thread Tools Display Modes
Old 17th June 2010, 06:56 PM   #1
Member
 
fbmagik's Avatar
 
Join Date: Mar 2010
Posts: 40
Thanks: 16
Thanked 2 Times in 2 Posts
fbmagik is on a distinguished road
Expertise: S.E.O & Marketing
Experience: Intermediate
Default My first website, Issue

So I finished my first website and put it up online. Was pretty pleased with it.

Then I realised a mistake which I didn't think of. I created the site in 1024x768, I think at the time I took those measurements off a tutorial I was following.

So all through the testing, I have not noticed any issues. But I have a 22" monitor at home, and the site works fine on mine. At work though, I work on a 17" monitor and noticed there is quite a bit of horizontal scrolling which sucks pretty much.

However, when the page is centred (manually), the content fits. To the side of the main content is just black. So it's not necessary for the viewer.

I was wondering if there was anyway to place in a bit of code which tells each browser to centre the content exactly and ignore the bit on the outside?

I will consider any way really. I just didn't want to re-size it slice it all in photoshop again and practically build it from scratch.

Any ideas?

Cheers. Tom
fbmagik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 17th June 2010, 07:05 PM   #2
moderator
 
kozata-xakep's Avatar
 
Join Date: Feb 2010
Posts: 50
Thanks: 0
Thanked 11 Times in 11 Posts
kozata-xakep will become famous soon enough
Expertise: Web Development
Experience: Professional
Send a message via Skype™ to kozata-xakep
Default

Can you give us a live example ?
kozata-xakep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 17th June 2010, 07:27 PM   #3
Member
 
fbmagik's Avatar
 
Join Date: Mar 2010
Posts: 40
Thanks: 16
Thanked 2 Times in 2 Posts
fbmagik is on a distinguished road
Expertise: S.E.O & Marketing
Experience: Intermediate
Default

Tom Howlett | Design Portfolio
fbmagik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 17th June 2010, 08:26 PM   #4
admin
 
Frinkky's Avatar
 
Join Date: Dec 2008
Posts: 717
Thanks: 0
Thanked 38 Times in 38 Posts
Frinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond reputeFrinkky has a reputation beyond repute
Expertise: Design & Graphics
Experience: Professional
Default

The physical dimensions of a monitor have nothing to do with the resolution the monitor is set to (well, there are some limitations such as maximum resolution, but that really bears no relevance and I'm probably confusing issues by mentioning it. So I'll stop).

To use your example - if your is set to a resolution higher than 1024*768 (for instance 1280*1024 or 1680*1050) you will see the whole page width, plus extra.

If your work monitor is set at a lower resolution, say 800*600 or 640*480, then obviously there is not enough pixels to fit the whole of the page width, thus the need for horizontal scrolling.

Desktop users with screen resolutions lower than 1024*768 are few(er) and far(ther) between, so adopting the 1024 resolution as the minimum size supported without horizontal scrolling is generally regarded as acceptable. The actual width of your page should be slightly less than 1024, a lot of people use a 960px width (me for 1). The reason for this is it takes into account the right hand vertical scroll bar and any vertical browser borders that constrain the actual screen real estate.
__________________
Jon Warner
Web Pro Cafe :: The PixelForge :: Follow my Twits (or something) :: LinkedIn
Frinkky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 17th June 2010, 08:38 PM   #5
Member
 
fbmagik's Avatar
 
Join Date: Mar 2010
Posts: 40
Thanks: 16
Thanked 2 Times in 2 Posts
fbmagik is on a distinguished road
Expertise: S.E.O & Marketing
Experience: Intermediate
Default

So is there a way around this? I wasn't too keen when I saw it on this 17" monitor. I'm not sure what resolution it was at
fbmagik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 18th June 2010, 01:55 AM   #6
supermod
 
shalom_m's Avatar
 
Join Date: Jan 2009
Posts: 437
Thanks: 1
Thanked 20 Times in 20 Posts
shalom_m has a spectacular aura aboutshalom_m has a spectacular aura aboutshalom_m has a spectacular aura about
Expertise: (X)HTML / CSS
Experience: Quite Good
Send a message via MSN to shalom_m Send a message via Skype™ to shalom_m
Default

Below you will see the stats for screen resolution of one of my UK websites.



Although there are 62 visitors with different screen resolutions, these 10 make up over 89% of the total in visits.

See #7. 320 x 396 px.? Those are visits from iphones, unless you want to specifically cater for ipones too it is best to ignore this statistic in the following discussion.

Not that 1024 x 768 is the lowest resolution as well as the highest ranking in visitors.

In the attachments below you will see partial screenshots of the slidebars of FF, IE and Chrome. Their width are 13px, 15px and 17px respectively. Add to that possible borders of the browsers (between 0 and 4px on each side) we now have a max viewing width of (1024 - 17 - 4 - 4) 999 px.

You want to leave some empty space on each side - say at least 15 px, that gets you down to 969px.

I usually use 960px as my max width.

This is not an arbitrary choice.
960 divides by 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48

Now why would this be important?
  • It for instance will allow you to divide up the screen into 1/2 and 1/3 and 1/6;
  • or into 5 columns @ 192 px;
  • or 3 columns @ 192 px and the 4th exactly double @ 384 px;
  • or working from the other end, divide 960 by 48 = 20, this constitutes the empty width between columns and edges, decide how many you need, the content columns will also be multiples of 20.
  • You can do the same with 12, 15, 16 and 24.

So 960px is a good choice.
Attached Images
This post has an attachment which you could see if you were registered. Registering is quick and easy
This post has an attachment which you could see if you were registered. Registering is quick and easy
This post has an attachment which you could see if you were registered. Registering is quick and easy
shalom_m is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
The Following User Says Thank You to shalom_m For This Useful Post:
fbmagik (18th June 2010)
Old 18th June 2010, 08:44 AM   #7
admin
 
WelshStew's Avatar
 
Join Date: Dec 2008
Posts: 1,946
Blog Entries: 3
Thanks: 16
Thanked 39 Times in 37 Posts
WelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond reputeWelshStew has a reputation beyond repute
Expertise: (X)HTML / CSS
Experience: Professional
Default

Quote:
Originally Posted by fbmagik View Post
So is there a way around this? I wasn't too keen when I saw it on this 17" monitor. I'm not sure what resolution it was at
Hi Tom,

I think this might need a slight rework. The layout you have is based on tables, and as such it is slightly harder to adjust the design easily.

You should be looking towards a table-less layout using CSS and Div's; tables should only be used to show tabular data, such as statistics, etc.

This will then allow you to separate design from content, and update your design quickly and easily. To see how powerful this separation is, please take a look at CSS Zen garden: http://www.mezzoblue.com/zengarden/alldesigns/ - all of these designs use the same HTML an djust the CSS to change the look and feel of the site - pretty impressive !

I would start by reading through a couple of tutorials on HTML Dog, which is a great resource: HTML and CSS Tutorials, References, and Articles | HTML Dog

After that, please come back to us and we will help you update your site.
WelshStew is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
The Following User Says Thank You to WelshStew For This Useful Post:
fbmagik (18th June 2010)
Old 18th June 2010, 09:16 AM   #8
Tom
trusted
 
Tom's Avatar
 
Join Date: Jan 2009
Posts: 783
Blog Entries: 16
Thanks: 17
Thanked 35 Times in 35 Posts
Tom will become famous soon enoughTom will become famous soon enough
Expertise: Design & Graphics
Experience: Quite Good
Default

Hi, As welshstew has said you design needs a little reworking mainly due to the use of tables.

The issue you have is that you are using images to pad out your content by setting the width, ideally what you want to do is remove the 2 images at either side of the image.

Create a repeating background image, you are partly there with: http://www.thowlett.co.uk/images/left.jpg

Then you use some CSS magic such as:

body {
background: url(background-image.png) repeat-x;
}

Then for the actual content of your website, wrap it in a div such as

<div id="wrapper">
<--- all your content including navigation etc --->
</div>

Then some more CSS

#wrapper {
margin: 0 auto;
}

Which will centre the content in the middle of the page regardless of page resolution, and as the background image is repeated automatically it will cover the full page again regardless of resolution.

From my experience the only time you should be concerned with monitor resolutions is for the #wrapper div. This shouldn't be too large as for smaller monitors the content will be off the side of the monitor and you will need to scroll.

You will soon find the number 960 battered around a fair bit. This is the standard width people use for their content these days.
Tom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
The Following User Says Thank You to Tom For This Useful Post:
fbmagik (18th June 2010)
Old 18th June 2010, 05:23 PM   #9
Member
 
fbmagik's Avatar
 
Join Date: Mar 2010
Posts: 40
Thanks: 16
Thanked 2 Times in 2 Posts
fbmagik is on a distinguished road
Expertise: S.E.O & Marketing
Experience: Intermediate
Default

Quote:
Originally Posted by shalom_m View Post
Below you will see the stats for screen resolution of one of my UK websites.



Although there are 62 visitors with different screen resolutions, these 10 make up over 89% of the total in visits.

See #7. 320 x 396 px.? Those are visits from iphones, unless you want to specifically cater for ipones too it is best to ignore this statistic in the following discussion.

Not that 1024 x 768 is the lowest resolution as well as the highest ranking in visitors.

In the attachments below you will see partial screenshots of the slidebars of FF, IE and Chrome. Their width are 13px, 15px and 17px respectively. Add to that possible borders of the browsers (between 0 and 4px on each side) we now have a max viewing width of (1024 - 17 - 4 - 4) 999 px.

You want to leave some empty space on each side - say at least 15 px, that gets you down to 969px.

I usually use 960px as my max width.

This is not an arbitrary choice.
960 divides by 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48

Now why would this be important?
  • It for instance will allow you to divide up the screen into 1/2 and 1/3 and 1/6;
  • or into 5 columns @ 192 px;
  • or 3 columns @ 192 px and the 4th exactly double @ 384 px;
  • or working from the other end, divide 960 by 48 = 20, this constitutes the empty width between columns and edges, decide how many you need, the content columns will also be multiples of 20.
  • You can do the same with 12, 15, 16 and 24.

So 960px is a good choice.
Thanks,

When it comes to the depth, I know this varies depending on what you are doing exactly. How would I go about making it a good depth so there wouldn't be much or any downwards scrolling?
fbmagik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 18th June 2010, 09:30 PM   #10
Senior Member
 
Join Date: Jan 2009
Posts: 980
Thanks: 56
Thanked 14 Times in 14 Posts
Michael is on a distinguished road
Default

Looking at your source code I noticed this comment -
<!-- End Save for Web Slices -->

Perhaps code it from scratch after slicing as that is a really nice design :)
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
The Following User Says Thank You to Michael For This Useful Post:
fbmagik (18th June 2010)
Reply

Tags
issue, website

Thread Tools
Display Modes