IE6 only scrolls halfway down my page - how to diagnose? - html

I put together a site that generally works well on FF, Chrome and IE8 (yes, I'm new to this):
I heard from our office in Japan who all use IE6 that various pages are not displaying properly, in short they stop scrolling when the page should scroll further - the scroll allowance is too short. I have confirmed this for myself.
Its not that I can't find a million suggestions for IE6 workarounds, but how to diagnose this problem? Is there a bug name for this?
A good diagnosis would be immensely appreciated - have spent hours on this now, to no avail, at tearing-out-hair stage.

When you use 'float:xxx', browsers can not calculate the height/width of element properly, you have to use 'clear:both' an element that resides after floating box.
Don't forget that when you position the element absolutely, then other elements doesn't look at it while positioning themselves.
Example on jsfiddle:
http://jsfiddle.net/tWJYJ/
In first example green and orange boxes doesn't see the red box while calculating positions, because it's positioned absolutely.

Related

Chrome Resizing Navigation Menus

So my problem is that for some reason on one page of a website I've been fiddling with, the two navigation bars that I have (Top and Sidebar Navigation) are for no apparent reason scaled down in the Google Chrome browser, their behavior is entirely normal in both iE and Firefox. The bar's remain completely functional, but are simply scaled down perhaps to 66% of the intended size.
Here is the code for the page in question: http://pastebin.com/uvrPR1JW
Here is the code for a similar, but functioning page for reference: http://pastebin.com/5dAMREfC
They're running off the same style sheet so the issue is likely in the HTML, however the style sheet is linked in the comment section for reference. If anyone spots any reason why it would be doing anything like this it'd be great to know. And I apologize for the messy code, as I said I'm just playing around with it.
Update:
You may notice that my code includes at least one flexbox, here is question posted by another user that may be related but I can't make heads or tails of it: Chrome shrinks figure elements as they are added to a flexbox
Update: Doesn't seem to be a problem with the flexbox, the issue still exists even when I remove all content except the top header.
I'd say it's the setup of your navbar, how you have an image and you just change the position of it on hover. Chrome has a weird feature where it moves things around when there is images so I would suggest looking up how to make a proper navigation bar (It's pretty easy).

Aligning 3 divs horizontally with no margin, bug in chrome only

I usually have no problems finding a solution to line up divs horizontally but however this only happens in google chrome.
This page here http://webdesignbird.co.uk/free-quote/ that iv'e just started working on has the issue, the 3 pricing plans should be side-by-side with no margin or white space between them.
If you view the page on firefox it shows the way I intended, but any changes I try to make for chrome then effects firefox.
I could target chrome specifically (after iv'e researched how to) but I would rather find out why this isn't aligning as it does in firefox. Perhaps i'm missing some code. I have only been building websites a year so my code skills are very average.
I cannot find the answer to my problem at the moment and would really appreciate a nudge in the right direction.
Don't know, why it works on firefox, but it seems that you just forgot the float:left on the tier-2-container.
Edit: I got the containers confused.

Chrome rendering error with position absolute and css3

I've been wrecking myself trying to figure out what is going on with this big of html. It renders correctly in latest Firefox, Safari and on chrome canary, but normal chrome renders these weird lines and I have no idea why.
I've create a JS fiddle with an excerpt of my code, it's part of a much larger project, but I'm seeing the rendering issue in the fiddle as well as in my app. I've attached a screen shot of what I'm seeing in the fiddle for reference.
Fiddle
Bug screenshot:
The red middle line shouldn't be there as well as the line to the left of "close". This is just one example, as I mouse over the modal I get lines appearing all over the place.
It makes for a less than stellar question as it's difficult to replicate. Resizing the browser helps to show the error. My fiddle has quite a bit of html and css. I don't expect anyone to actually comb through it and fix the issue. I just want to be thorough in presenting the problem.
I've tried looking online but I haven't been able to find anyone reporting the same issue as far as I can tell.
If anyone has any ideas on what may be causing this, how to fix it or point me to a relevant link/SO question I'd be very grateful.
Things I've ruled out/investigated:
- not caused by something else on the page, as I extracted it into jsfiddle and it's still hapenneing. I also removed the body content using the console in my app and it didn't make a difference.
- I dont think the gradients or transitions are causing it, as removing them didn't seem to have an effect
- possibly/probably related to absolute positioning? When I removed the position absolute on the main wrapper element I didn't see this occuring.
- I read that applying a z-index to these elements might help, but it did nothing for these issues.
TL,DR: Why does google chrome, but not canary or safari, show rendering errors on absolutely positioned elements with liberal use of css3 gradients, shadows and transitions?
When I remove the '-webkit-transform: scale(0.95)' on #vfs_uploader and the '-webkit-transform: scale(1)' on #vfs_uploader.visible, it displays fine: http://jsfiddle.net/cjc343/fzqPT/2/
I don't know how this affects Safari or if it has other implications in Chrome, but it does not appear to otherwise affect the layout in the example.

Why is my layout broken only in Firefox and IE8 (not 9)?

I noticed today that a website that I've completed months ago was not showing well on Firefox and IE8 (works fine in IE9). It's quite old now and I'm pretty sure that I tested browser compatibility at the time but I guess one does make mistakes.
Problem is I can't seem to understand the problem. Basically I have a left floated sidebar with a fixed position but it renders on the right (outside its container) on FF and IE8. I could always build the layout again from scratch (it uses Skeleton Grid system) but would still like to understand the problem.
Example page that's broken on the website.
Try to open it with various browsers and see for yourself. Also, if someone views it right on FF, I'm interested too.
Thanks a lot!
Edit: I'm not asking for a whole debugging. Just if someone knows of this issue.
Edit2: Validator links are irrelevant here. I checked it already and they're basically prefixes for css and CMS-related for html.
Edit3: I fixed it and prepared a kinda complete answer to post but as I'm a new user, I can't answer my own question in the next 7 hours... so here it is:
I just sorted the whole thing out with hints from your answers (thank
you!).
Basically, it's something to do with how browsers handle floats on
fixed elements. Imagine we're dealing with successive "float:left"
element, which is the case in most grid system (960gs, bootstrap,
etc.).
Here's how browser will handle these elements without fixed
positioning: http://jsfiddle.net/cPjdK/ And with float:right :
http://jsfiddle.net/cPjdK/1/
Now what if we have a very long third column and want to fix the first
(my example)? Well it basically disables the floats because fixed
elements are out of the flow. http://jsfiddle.net/cPjdK/9/
So you have to position them absolutely (or with margins in my case)
http://jsfiddle.net/cPjdK/6/
Now what about my website? The fixed elements were floated anymore and
the whole grid system kinda fell apart. Fixing this appeared to be a
long work. But, for some reason, replacing my "float:left" properties
on floated elements with "float:right" basically fixed it. Why did it
fix it? Why was it not working on FF and IE8 but appeared fine on IE9
and Chrome.
I have no idea.
But it looks fine now (after a few tweaks) and I've already been paid
so...
Problem solved but question unanswered, sorry...
You have a FIXED positioned element without giving it any coordinates.
Try giving it something like:
#side-right{
position:fixed;
top:0;
left:0;
}

li elements moving about in Chrome (display: inline-block)

Please see this page: http://access.mwjt.co.uk/feedback/?s=hmmm
When viewed in Chrome, occasionally the 3 pictures are in the correct place, but usually some or all of them jump down to a lower position. (hitting refresh shows the error as the page displays differently each time)
Can anyone shed any light on this bug please?
Many thanks! Mike
You have some invalid HTML markup going on there.
Firstly, wrapping the form within a fieldset? should be the otherway around, Form > Fieldset.
Also, after the </ul> you have a <p></div> combo going on. this is probably causing the page to break.
Turns out the image sizes were being resized by webkit and Chrome wasn't always consistently happy with this. Setting image heights as px solved the problem.