|
|
 |
Re: FN-FORUM: CSS question (again)
date posted 7th March 2008 11:02
If you mean the #container div, I set it to:-
#container {
min-width: 870px;
max-width:1000px;
margin: 10px auto;
border:1px solid #444444;
background: #ffffcc;
text-align:left;
}
"margin: 10px auto" - I hope this means 10px top and bottom, auto left
right?
Is the "text-align:left;" causing the prob maybe?
In FF, it behaves impeccably :)
Lee Rickler wrote:
>
> Have you set margin and padding left/ right to auto?
>
> Lee Rickler
> Director - Point and Stare - pointandstare.com
> Web Design and Development for over 11 years
>
> Dominic Raywood wrote:
>>
>> I have amended a site of mine recently, to contain the while page
>> within a div, so that the site is fluid, but only upto a max width.
>>
>> All looks fine in Firefox and IE7. It centres, has a nice fading
>> background image for the bit of the page the site doesn't use.
>> Resizes upto 1000px wide and goes down to a min width too. All looked
>> good until in IE7, I decided to reduce the font size in the browser.
>> It sort of behaves, but the div is then not central. It retains it's
>> size and the content stays inside, but with reduced font, the
>> container div moves to the left. With increased font, it moves to the
>> right.
>>
>> Any ideas what could be wrong?
>>
>> http://bagenhamfarm.co.uk if you are good with CSS layout and would
>> like a peep.
>>
>> Thanks.
>>
>
--
Dominic Raywood
Rubicon Computer Services Limited
W: http://rubiconcsl.com
E: [EMAIL REMOVED]
T: 08456 521 561 (+44 1823 698420)
F: 08456 521 561
M: 07050 204998 (+44 7811 252573)
Skype: RubiconCSL
|
 |
|