How to face your web site for wide screen
If you create your web site in your computer and you test it in your computer relevant your screen resolution. But some one see your web site which wider than your screen what happen to your web site and how he (or she) accept that. Do you think about that?
When I’m creating a web page in local machine I do it relevant to my screen resolution. For an example I use 1024*768 screen resolution. My web page works well in my computer because I make it relevant to it. There is no matter.
But problem begins when I publish it. Different people use different screens. Some are larger, some are larger also use wide screens. When they visit my web site and sometimes the see what I'm not expected.
What can we do for avid that. We can decide the width of our site and limit it to that width. But there is another problem. When we limit the width of the site it shows align to left in wide screen.
We can use simple CSS method to avoid both of these problems. Using these methods we can limit the width of the web site and it aligns to center.
We use div to limit the width of the site. I use name 'container' (as many others use) for the ID of that div. We can set the div width to fixed value using simple CSS method. I fixed it to 1000 pixels.
#container {
width:1000px;
}
Now I want to align that div to center. We can modify above css style to do that. Change it as follows.
#container {
width:1000px;
margin-left:auto;
margin-right:auto;
}
Now style is completed. Now put your site content between the div tag.
It's simple but very important. Keep it in your mind and use it when you creating web site.
Nothing Found!
Why not submit your own content? Signup here.
-
How to Customize Your Own Website | By mboone84 | in Web Design
Are you starting a new business, and a little low on advertising funds? Or do you just want to create a website to ...
-
Success of E-commerce Website Design | By Marcbenson | in Web Design
The websites are developed with the aim of sharing information. This information exchange may be reciprocal or non-...
-
Make your Own Free Website Using Webs (Formerly Freewebs) | By jeansmith99 | in Web Design
Why do YOU want your own free website? A small business? A blog? An online store? With Webs - formerly known as Fre...
-
Heading Tags For SEO friendly | By uzny | in Web Design
Headings are one of the most vital elements of designing your web page. Headings signify and organize the importanc...
Nothing Found!
Why not submit your own content? Signup here.








hai ! nice article dO MORE for us