Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

New with resolution problems

Featured Replies

Hi Everybody,

 

I'm quite new to web design and designed my first website 18 months ago. I'm currently designing one for a friend but am having problems with the display resolution. I'm using Frontpage Express 2003 with a resolution of 1280 x 960. But my friends PC is a lower resolution and the site becomes distorted, pictures are larger and move, text doesn't flow etc.

 

How can I accommodate different resolutions and keep the ratio of my design the same as the one I see.

 

Any replies much appreciated. I do have some other areas that I'm not sure how go about tweaking, but will ask those later. (One problem at a time is enough for me).

 

Many thanks, Karen

Hi,

The most common browser resolution at the minute is 1024 x 768 so I keep that in mind and make pages that have a maximum width of 960px. Then depending on the design set the wrap so its fixed, so no matter how big the browser it will always hug the left side of the browser and not move, or have auto margins so that everything within the wrap centers when the browser is enlarged.

 

This is a good website/tool to get the exact browser sizes, http://browsersize.com/

 

Hope this helps, make sense.

 

Damian

Actually if you're using firefox you can get the web developer toolbar and then click on resize and make your own custom size, just type in 1024x768... Walla, problem solved. :)

 

Welcome to the forum.

  • Author

Thanks for your replies, much appreciated, but I don't have Firefox.

 

So, if I change my resolution to 1024 x 768 my design should, in theory, be OK for the majority but not all.

 

The auto margins sounds good, but how do I set the margins. (I almost feel ashamed :unknw: by my lack of knowledge)

 

Karen

how to impliment auto margin system is a template/layout?? i am alsi interested

add

 

body{margin:0 auto;

width:960px

}

 

To your css, and i recommend working with a width of 960px like DamianH suggested. Not only does it give you ample space for the scrollbar, but it also takes into account the people who don't use the maximise button on their browser (people who drag the browser out to a reasonably large size).

 

Ontop of that, 960 is easy divisible into a lot of numbers, and make calculating dimensions for a range of sites a whole lot simpler.

 

I.E a 2 column layout could be 720 + 240 (the side column takes up exactly 1/4) or 640 + 320 (making the side take up exactly 1/3)

 

4 equal width columns would be 240x4 or 5 equal columns would be 192x5

 

Anyway you get the idea, 960 is so incredibly flexible for proportions.

  • Author

Thanks for that Bocaj I've done it. But the text is now so close to the left the first letter of each line is almost chopped off. Have I put it in the right place, it's on line 5.

 

 

<head>

<style>

body{margin:0 auto;

width:960px

}

 

 

I also think my problem with the pictures moving is something to do with the fact that I have inserted a picture then pressed the space bar a few times, then inserted another picture, pressed space bar again and so on (I know this is probably very amateurish). I have 6 individual pictures along the top, but it's the last one that keeps jumping onto the line below the others. I'm wondering if they are 'grouped together' (which can be done in Microsoft Publisher) whether they would automatically resize.

 

<body bgcolor="#FFFFCC">

 

<p>

<img style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid" height="112" src="http://tbn2.google.com/images?q=tbn:47aq1Roa-TqrQM:http://i272.photobucket.com/albums/jj191/MichelleTuongVyVo/palm_tree.jpg" width="83">      

<img src="http://disney.orlando4.home.att.net/astroorbiter.JPG" width="150" height="112" border="1">      

<img src="http://www.unitedpassports.com/images/FloridaBeach.jpg" width="150" height="112" border="1">      

<img src="http://api.ning.com/files/47GihSJ35Ix0dxgJ9eIEYLcOQNq1Wb696x9qH2VQSr9Kd12JkWUs-Udyh0jMJKeQy*Bx2LTQtNmpyJszWmAKPTK-YucRTuvW/floridagolf.jpg" width="150" height="112" border="1">      <img height="112" src="http://www.dogonews.com/files/Image/dolphin342_90453cd3923c11faf9e29d84c6cac644.jpg" width="150" border="1">      

<img src="http://www.floridaestates.org/_images/disneyland_orlando_florida.jpg" width="88" height="112" border="1"></p>

<p> </p>

<p align="center"><font size="7">Florida Dream Place</font></p>

 

 

This is the first I've ever looked at the codes, as I've only ever seen from Design View, so I'm learning.

 

Thanks for all help so far.

 

Karen

  • Author

I think I've done it!

 

I'd missed off Damian's advice to 'wrap' so I've wrapped the left most picture to the left and the rest seem to magically follow suit. I think you're wonderful!

As a quick note you should try to keep your styling separate from your markup.

 

To link to a css document add this to the head of your document:

 

<link rel="stylesheet" type="text/css" src="stylesheet.css" media="screen" />

  • Author

I'm sorry, but I don't know what you mean by 'styling' and 'mark up'

 

(I'm now painfully aware of my naked ignorance, but please forgive!)

 

Karen

I'm sorry, but I don't know what you mean by 'styling' and 'mark up'

 

(I'm now painfully aware of my naked ignorance, but please forgive!)

 

Karen

 

 

Oh, ok.. No problem.

 

XHTML (eXtensible Hyper-Text Markup Language) is a markup language used to declare elements on a page such as <div> <p> etc..

 

CSS (Cascading Style Sheets) is a styling method used to style the elements on the page.

 

Ideally styling and markup should be separated.

 

There are 3 types of styling:

 

  • External
  • Embedded
  • Inline

 

External is what I was referring to.. Linking to an external stylesheet (a .css document) and that document will hold all your CSS for styling on the page.

 

Embedded is using the style tags within the <head> tag of the document like so..

 

<style type="text/css">
#property {
selector:value;
}
</style>

 

Inline is plunked right in within the tag. This method is generally NOT recommended.

 

<div style="selector:value;"></div>

 

Does this stuff make sense to you?

 

Additional resources:

 

  • Author

OK, I sort of get the gist of this but don't properly understand. I've only used Design View so presumed (wrongly maybe?) that would automatically sort out the technical bits and I wouldn't need to get involved in the coding and 'behind the scenes' bit etc.

 

Maybe I should just get a Web Design for Dummies book, eh? This is turning out to be a pure headache. On the whole, if the website displays ok to the user and does the intended job of advertising this property and getting bookings, would it make a great deal of difference separating the CSS from XHTML ? (Hope this doesn't sound tetchy - not intended to be, but it's difficult to word).

 

Karen

Ah... WYSIWYG is a no-no.

 

You should learn to code by hand.. Your end result will be much, much better.

 

I would suggest you take a look at the HTML dog link.. It is a very good resource. :)

  • Author

Thanks Meschach, I will probably be back in a few days after I've gone through these tutorials. I just hope it ends up as easy as the old BASIC language that I learned - that made perfect sense (when I was a teenager!) and was quite easy to learn.

Thanks Meschach, I will probably be back in a few days after I've gone through these tutorials. I just hope it ends up as easy as the old BASIC language that I learned - that made perfect sense (when I was a teenager!) and was quite easy to learn.

 

You will most likely have no trouble learning XHTML & CSS.

 

(Oh, and a word of advice, don't use tables for layout or WYSIWYG editors i.e. design view).

 

I wish you luck.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.