[SOLVED] ngery/CSSMenu top + 2 columns template --- can one make it fix width?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

[SOLVED] ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by docman »

Hi, I use the above template. It is a fluid width template with some minimal width. I found the definition for the page wrapper (on in the template, one in its CCS).

What I would like to do is to make it fix width, say at 1024 across. The reason is, that I created an image rotator that would need a fix width. Now that I am saying this, the other solution would be to fix the width of the CSS #div definition for thos and also for the news module, both appearing in the sidebar. Well, still it is easier to fix the width of the temple (this should be simpler).

Thanks for your suggestions.
Last edited by docman on Tue Jan 05, 2010 9:05 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12710
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by Dr.CSS »

Remove the IE6 JS width calls from template, in CSS look for the min/max width setting and change to your desired size using just width:...
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

Re: ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by docman »

Thanks. It worked. Would it not cause a problem removing the JS hack in IE6? I do not have IE6 available to me hence I cannot test. What would be the expected result?

Is there a modification of this command

#pagewrapper {width:expression(P7_MinMaxW(720,950));


for width, only?

Thanks again
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by RonnyK »

Removing that IE-fix wont harm with a fixed width. That fix for IE6 and lower is only required as IE6 and lower doesnt understand 'em'. So when you use 'px' in the stylesheet, then the fix isnt needed at all.

Ronny
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

Re: ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by docman »

I see. I am still using em in the style sheet. Should I used then px?

Incidentally, in your opinion why was width given in em in the style sheet in the first place, if using em invokes the need of an IE6-fix in the template?

Thanks.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by RonnyK »

Docman,

em is "units of the character M", so the width of 'm'. When people have different fontsizes on their site, the width goes along, as bigger font, means more width (the m gets wider ;) ). So 'em' is kind of flexible width, based on character/font.

When you use 'px' in the stylesheet, the IE6-hack can go... Otherwise could it remain, when you make it similar min-max, as the width set in the stylesheet.

Ronny
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

[Solved]Re: ngery/CSSMenu top + 2 columns template - can one make it fix width?

Post by docman »

Thanks.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: [SOLVED] ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by RonnyK »

docman,

one piece of additional information here.... The IE-fix was NOT for 'em' but for min-width max-width, as apparantly that is what is not understood in IE6... I thought it was of the 'em', but got corrected in the meantime.

Ronny
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

Re: [SOLVED] ngery/CSSMenu top + 2 columns template --- can one make it fix width?

Post by docman »

Thanks Ronny to clarify it.
Post Reply

Return to “Layout and Design (CSS & HTML)”