Page 1 of 1
Uber wierd IE behavior
Posted: Wed Jul 26, 2006 3:42 pm
by Bigun
I'm having a very weird issue.
First of all, all of my pages use the same header, and the same stylesheet.
That being said, here's my issue:
http://www.cybergrunge.com/images/good.jpg
http://www.cybergrunge.com/images/bad.jpg
Whenever I am logged in on IE, only on the browse page does the username get shifted *WAY* over to the right.
Here is the URL of the page:
http://www.cybergrunge.com/test/browse.php
Posted: Wed Jul 26, 2006 4:08 pm
by daedalus__
Is that a float?
You might try this:
Code: Select all
<div id=header>
<p id=pagetitle>cyber grunge</p>
<p id=user>you are logged in as: daedalus</p>
</div>
CSS:
#header
{
position: relative;
}
#user
{
position: absolute;
left: 1em;
}
Take that with a grain of salt of course, but what happens is the 'you are logged in' stuff will be absolutely positioned inside of that relatively positoned div instead of the whole page. relative absolute poisitioning is what i think they called it when i read about it.
and btw that should work in-between browsers which is why i suggested it
Posted: Wed Jul 26, 2006 4:13 pm
by Bigun
But it's the *exact* same code on all the pages.
http://www.cybergrunge.com/test/header.php
http://www.cybergrunge.com/test/default.css
The code that inserts the username into the navbar is in header.php... and the styling is in default.css and default-ie.css.
Why would it load differently on browse.php.... GAH!
Posted: Wed Jul 26, 2006 4:25 pm
by Bigun
Wait... in a header that involves PHP... is it necessary to stop the PHP in the header file with a '?>'
Or will that be taken care of in the file the PHP is included in?
Posted: Wed Jul 26, 2006 4:33 pm
by daedalus__
?>
Posted: Thu Jul 27, 2006 6:31 am
by Bigun
Then I have no clue.... there are no differences.
Posted: Thu Jul 27, 2006 8:04 am
by Chris Corbyn
Bigun wrote:Wait... in a header that involves PHP... is it necessary to stop the PHP in the header file with a '?>'
Or will that be taken care of in the file the PHP is included in?
You need to close *all* php blocks of code in the same file. You can't open it in one file, then include another file which closes it.
If the code is the same in all pages I'd be looking away from the header and at the possibility that you've forgotten to close a <div> or whatever somewhere.
The validator should solve that one.
Posted: Thu Jul 27, 2006 9:37 am
by Bigun
It passes validation
For whatever reason, I did finally find a solution.
Don't ask me why, but a <form> tage placed outside the beginning div tag after the header worked.