...

View Full Version : liquid layout suggestion -site is fixed now



chaser7016
05-22-2007, 08:54 PM
http://www.techavid.com/internetradiomobile.php

Either screen resolution you will notice that the middle column is not centered properly. MY html/css skills are ever evolving and I feel somewhat comfortable with fixed width, but am puzzled by creating a fluid design.

Can anyone suggest a CSS property that would center everything up and create a fluid layout?

The fixed width layout i have no works fine on Firefox and IE 7, but not on IE 6 the middle column drops down when i have it centered accordingly.

koyama
05-23-2007, 02:24 AM
Can anyone suggest a CSS property that would center everything up and create a fluid layout?
The proper way to center a block-level element is by using margin: 0 auto

Example:


div.header {
margin-top: 0px;
/* margin-left: 140px; */
margin: 0 auto;
background-color: #000000;
font-size: 50px;
color: #ffffff;
width: 700px;
height: 100px;
text-align: center;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum