Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Website Design

Website Design HTML Reference and CSS , DHTML, XML. Browser Compatibility questions and answers,
Your source for basic website builder knowledge

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-08-2007, 01:40 PM
Junior Member
 
Join Date: Nov 2007
Posts: 5
matt159 is on a distinguished road
Question How do you centralize website

Can anyone tell me how to centralize my webpage on all size screens and the background fills the whole page?

Reply With Quote
  #2 (permalink)  
Old 11-09-2007, 12:20 AM
Belthazor's Avatar
Member
 
Join Date: Feb 2007
Posts: 51
Belthazor is on a distinguished road
Quote:
Originally Posted by matt159 View Post
Can anyone tell me how to centralize my webpage on all size screens and the background fills the whole page?
Use % instead of pixels.

For example if your banner is 800 pixels and you change it to 100 % then it will automaticly change to the size of the resolution that the visitor is using.
Reply With Quote
  #3 (permalink)  
Old 11-13-2007, 12:34 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
fajar is on a distinguished road
centering

you can fill the body with the background and for the website its like Belthazor said u can use % (for example 80%). Supposed you have a wrapper div ( with width 80%)inside ur body.

you can add style in css
Code:
body {
background :#fff url(your image url);
}
#wrapper {
width:80%;
margin:0 auto;     
}
that code will work on firefox but Ie 6 will not so you want to add some hack to your css code
add to the body text align because Ie will center everyting
Code:
body {
background :#fff url(your image url);
text-align:center;
}
and u can style your text inside your wrapper layout
Code:
#wrapper {
width:80%;
margin:0 auto;    
text-align:justify; 
}
hope it will help...

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Forum Jump


All times are GMT +2. The time now is 03:27 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com