![]() |
Question | About Resolution
hello people , i asked alot of people about how can i match my
website to any Resolution. but got no help yet. here is my index.htm code: Code:
<html>and here is my css file: Code:
ignore that.. so again my question is: what should i do to match my website to any resolution thx alot!! |
I don't understand what you mean by "match" your site to any resolution. As long as it displays good on a 1024x768 you are good.
|
Quote:
but i tried in another pc with big screen and another resolution it's not displaying good.. any help plz... :( |
width: 100%
Displays 100% at any resolution. |
do you want to make your website fixed to 1 resolution or to extend depending one the clients resolution? If you want a fixed resolution like 1024x768 that is easy by using pixels in your widths, but with a expandable resolution you would need to setup a base font size for the body and then use either em units or percentages for the widths of your columns.
|
what i want is to setup my website to display good in any
resolution. how could i do that ? thank u 4 helping me and sorry because my english not so good. |
If your width is fixed (always stays the same) than you could center everything and use a normal background color.
If you want your width to adept(change on resolution) than you should use width % like 100% or whatever. PS: I see your using position:absolute on your bottom right corner ... which i guess makes it look weird. |
thank u i will try to do something
|
Quote:
css Code:
This is where the problem may lie. You're positioning the main div 152 pixels from the left border, and while that may center it on certain displays, the larger the resolution, the more whitespace you're going to wind up with on the right side. Give this a try: css Code:
On a side note, you don't have to specify the method of measurement, such as px or em, on 0 widths. Also, since you have a good handle on CSS so far, you might want to look into shorthand properties (http://www.w3schools.com/css/pr_margin.asp for example) so that you don't find yourself creating larger stylesheets than necessary. |
| All times are GMT. The time now is 12:22 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0