By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

I'm Still Having IE problems

P: 9
For some strange reason I can't seem to get my div to stretch the entire width of the page on IE, but on Firefox, it works perfectly. Some very good suggestions were offered to me in a previous post on here (http://www.thescripts.com/forum/thread613333.html). Sadly, however, it didn't seem to do the trick. If anyone has any suggestions, I would highly appreciate it.

To see what I'm talking about, open up http://www.myspace.com/fskoolaid in both IE and Firefox and check the source code. (Obviously my personal coding starts with <div...> and ends with </div>.

Thank you all for your time.

Again, the previous thread is: http://www.thescripts.com/forum/thread613333.html
Mar 12 '07 #1
Share this Question
Share on Google+
12 Replies


Expert 100+
P: 1,892
For some strange reason I can't seem to get my div to stretch the entire width of the page on IE, but on Firefox, it works perfectly. Some very good suggestions were offered to me in a previous post on here (http://www.thescripts.com/forum/thread613333.html). Sadly, however, it didn't seem to do the trick. If anyone has any suggestions, I would highly appreciate it.

To see what I'm talking about, open up http://www.myspace.com/fskoolaid in both IE and Firefox and check the source code. (Obviously my personal coding starts with <div...> and ends with </div>.

Thank you all for your time.

Again, the previous thread is: http://www.thescripts.com/forum/thread613333.html
I think the problem in this case is myspaces lack of a Doctype. Also, you may want to be carefull it looks like you're covering up some of MySpaces ads they will delete your account if they feel you're in violation of their TOS. It looks like IE is rendering the page in quirks mode.
Mar 12 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
From the first div at the top, remove 'width:100%' from that style. If that doesn't do it, try removing 'position:absolute; from the same style.
Mar 12 '07 #3

P: 9
From the first div at the top, remove 'width:100%' from that style. If that doesn't do it, try removing 'position:absolute; from the same style.

OK, I removed the 'width: 100%' from the style, and it didn't really do anything. I then tried also removing the 'position: absolute' from the same style and it went from the 'whole' page to only being in the 'About Me' section. So I put it all back in.

What's all this about a DOCTYPE?
Mar 14 '07 #4

jhardman
Expert 2.5K+
P: 3,405
What's all this about a DOCTYPE?
According to the HTML 4.0 standard, each web page should start with a line which says what version of HTML, XML etc is being used. It was ignored by most browsers for the first couple of years (when did HTML 4.o come out? several years ago, at any rate), but now ie6 in particular seems to interpret many pages incorrectly unless they include the correct doctype.

Jared
Mar 14 '07 #5

drhowarddrfine
Expert 5K+
P: 7,435
See the sticky at the top of this board about doctypes.
Mar 14 '07 #6

P: 9
So, the basic jist of all of this is that I'm pretty much screwed when it comes to IE because of Myspace's lack of said Doctype...?
Mar 14 '07 #7

drhowarddrfine
Expert 5K+
P: 7,435
Probably not with this problem. The lack of a doctype means that IE will forever be in quirks mode which is really an error condition, so it won't perform like modern browsers do.

But that doesn't mean this problem can't be fixed. It's just difficult to help online due to all the images and a lack of editing tools for IE that Firefox has built in.

I finally reinstalled Windows on my other box, though, and I'll look at this again shortly.
Mar 14 '07 #8

P: 9
I finally reinstalled Windows on my other box, though, and I'll look at this again shortly.
Thank you so much. I truly appreciate it.
Mar 14 '07 #9

drhowarddrfine
Expert 5K+
P: 7,435
As I thought, I can get it to center in IE but it messes other browsers up. That myspace stuff is horrendous code. The worst I've ever seen. I spent way too much time on it. Sorry.
Mar 14 '07 #10

Expert 100+
P: 1,892
As I thought, I can get it to center in IE but it messes other browsers up. That myspace stuff is horrendous code. The worst I've ever seen. I spent way too much time on it. Sorry.
I really think this problem is with myspace. If setting the body margin to 0px works with FF and not IE then FF is rendering the page correctly and IE isn't. Like Doc said above myspace is awful tag soup and I still think in 'MySpaces' eyes you will be violating their TOS. Just make sure you have a back up of all your work incase they delete your account.

Aric
Mar 14 '07 #11

P: 9
Well, that's it then I guess. Thank you both for all of the effort. I suppose the only thing I can do now is try to convert all of my friends over to Firefox, or some other Mozilla browser. That's the way it goes sometimes.

Anyway, thank you both again.
Mar 14 '07 #12

drhowarddrfine
Expert 5K+
P: 7,435
Opera is good, too.
Mar 14 '07 #13

Post your reply

Sign in to post your reply or Sign up for a free account.