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
Uber wierd IE behavior
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Is that a float?
You might try this:
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
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;
}and btw that should work in-between browsers which is why i suggested it
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!
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!
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.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?
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.