MFGG phpBB Message Boards Archive
https://phpbb.mfgg.net/

[HTML/CSS] Chrome anomaly?
https://phpbb.mfgg.net/viewtopic.php?f=10&t=15752
Page 1 of 1

Author:  HylianDev [ Fri Jan 31, 2014 3:37 pm ]
Post subject:  [HTML/CSS] Chrome anomaly?

So, I'm making a website. Working on a layout for the Register page at the moment. But, for some reason, this is happening (two pics):

Spoiler:


In Firefox, Safari, and Opera, it looks like the first image, but in IE7 (which idc about) and Chrome it looks like the second image. It surprised me about Chrome; it's actually my primary browser.

See, it actually looks fine until I put a <form> tag around it, then it does it. Even weirder, if I press the register button (which doesn't have any PHP functionality yet), then the page *loads fine*. It's like the fact of whether or not there is $_POST data is affecting my layout. Is this just a glitch in Chrome I can't hope to fix?

Author:  onpon4 [ Fri Jan 31, 2014 4:08 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

Probably just bad markup or a mistake in the style sheet. Hard to say without seeing it, though.

Author:  HylianDev [ Fri Jan 31, 2014 4:15 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

I'll post my code. The things you'll probably find most relevant are div.left-side and div.right-side, also perhaps div.body and div.fill since they're also inside the <form> tag.

(the form goes to "register" and not "register.php" but I'm using htaccess for that)

Spoiler:

Author:  Hypernova [ Fri Jan 31, 2014 5:45 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

It looks like you have to manually set the margin, I see the margin class is automatically positioned (which can be troublesome depends on certain browser). As for the email box, try to mess around with margin-top and padding-top and see what happens.

Author:  HylianDev [ Fri Jan 31, 2014 6:00 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

I'm able to fix it, half of the time... but the other half it's up too high. It's strange, it's like the page is rendering inconsistently. I even made a script that compared the source of the page when it rendered correctly and when it rendered incorrectly, and they're identical.

Author:  Hypernova [ Fri Jan 31, 2014 6:20 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

If it 1/2 work, try to modify the <div> with the class ".right-side". Add margin-top: 0px !important; to it and see what happens.

Author:  HylianDev [ Fri Jan 31, 2014 6:27 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

it still works only half the time; sometimes it will be right, and others way too high.

Author:  Kritter [ Thu Oct 19, 2017 6:09 pm ]
Post subject:  Re: [HTML/CSS] Chrome anomaly?

I don't seem to have the same problem with Chrome? Copy+pasted all your code and it looks fine on my end.

Image

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/