Topic: ie7 css fix

how can i center my page for ie7 ? ie6 and ff seem to be fine...
but ie7 SUX!

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

The way suggested in the wiki doesn't work in IE 7?

Re: ie7 css fix

how so? i didnt find anything in the wiki that listed ie7

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

quaker wrote:

how so? i didnt find anything in the wiki that listed ie7

Q

http://wiki.punres.org/Change_forum_width
The suggestion for "change the width and center the forum" doesn't work in IE7?

Re: ie7 css fix

no i have a small custom css in the main.tpl that centers and set the width of all the style loaded...

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

i have added the

<style>
#punwrap {width: 800px; margin: 12px auto}
</style>

to the main.tpl
so that way i will have the same width on all style if a user changes there style..


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

Adding that to base.css would accomplish the same purpose wink

So that doesn't work?

Re: ie7 css fix

nope well sorta it moved it alittle
http://modelcrowd.com
use ie7

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

It looks fine to me hmm

Re: ie7 css fix

Smartys wrote:

It looks fine to me hmm

It is off to the left slightly -- but not centered.

I had a similar problem once where I did not have the following code, (for example), in the right order -- It made the page appear on the left rather than central.

<?php
define('PUN_PORTAL_PAGE', 1);
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . '';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

11

Re: ie7 css fix

liq, is that what you did to fix the issue?

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: ie7 css fix

The code above works fine. I can't seem to duplicate the problem but basically, the code above is in the correct order.

I think this may, however be completely unrelated.

---

Adding this css to base.css would make much more sense. (Or just set the width in all your different style sheets.