Forum Moderators: not2easy

Message Too Old, No Replies

Question about width?

         

laurieballard

9:02 am on Jun 1, 2009 (gmt 0)

10+ Year Member



Hello

I asked a similar question previously but this is a different question/problem

I have a #wrapper id which is set to width:80% meaning it stretches according to the screen resolution.

However I then have an #inner tag which has a fixed width of 950px as i dont want the content to stretch if the screen reolution changes as the elements have a fixed widths.

In IE the page is centred but in firefox the whole page is aligned right and will only centre if i change the width of the #inner tag to be auto;.....cant really win on this one?

[edited by: swa66 at 11:41 am (utc) on June 1, 2009]
[edit reason] Keep the discussion in the forum please [/edit]

swa66

11:45 am on Jun 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please post some minimal code showing the problem.

For your own sanity: don't develop in IE, it'll only set you on the wrong foot.

superds

4:52 pm on Jun 1, 2009 (gmt 0)

10+ Year Member



I think you should add one more fixed size div in #inner div and set auto width for #inner.

FireBug is best plugin for FF to set html and css as per need.

SuzyUK

10:21 pm on Jun 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



However I then have an #inner tag which has a fixed width of 950px

you may well be lucky, depending on which browsers you or your client need to support. You should use min-width for that inner element, however whether that will work properly x-browser or not is another story

laurieballard

7:26 am on Jun 2, 2009 (gmt 0)

10+ Year Member



Fixed by using min-width and setting the width to auto

Thanks very much :)