Firefox scroll bars but not on Chrome - css

I'm having trouble finding where I have the CSS wrong on this site. On Firefox, it's showing side scrolling to the right but on Chrome, it looks fine. I'm thinking overflow:hidden; but I can't seem to find where to put that.
Here's the site: http://www.llmedia.co/
Appreciate it!

The problem is in your footer. Your whole page width is 960px. But the footer ul width is 1100px. So in small screens your site will have a scroll bar to the right. Same result will happen in firefox browser too. So reduce the footer width to 960px and your scroll bar will disappear!
#footer ul { width: 960px; }

I see a scrollbar in Chrome so I'm guessing it has to do with your viewport size. Try shrinking your browser window in Chrome and see what happens. Be careful with using overflow:hidden;. You may be hiding content from users who don't have a large viewport for whatever reason.

Related

overflow auto in firefox doesn't show all content that overflows on scroll

I'm currently working on a fixed navigation menu for a client on mobile. I have noticed that in Firefox when you set overflow-y: auto and a max height on a div that it will show the entire div in Chrome and Safari but in Firefox the bottom content is never revealed. I have created a code pen to show what I mean. Try and scroll to the Last item (Literally called "last") in Chrome and you can reach it but try and do the same in Firefox and you can't!
http://codepen.io/acha5066/pen/oXyXZz
max-height: 400px;
overflow-y: auto;
Anyone know what causes this or how to fix it?
I think it is due to how firefox and chrome behave to same padding and height values. If you increase or decrease you max-height in any of the browser, you can easily scroll to your last item.

100% Height Div on iPad

I am working on a responsive website using the Skeleton Grid and have a left floated navigation bar div that is 100% height of the browser window. It works in all browsers I've tested except for mobile safari on the iPad. In mobile safari the navigation div is 100% of the viewport, but when you scroll down on the page the div does not stretch to the bottom of the content. [See image below].
How do I make it so that the div is 100% height on the iPad, not just 100% of the viewport?
Dev Site: http://www.id8agency.com/jeremiah
Screenshot of the problem: http://www.id8agency.com/jeremiah/jeremiah.png (as you can see the white bar on the left does not stretch to the bottom of the page once you scroll)
How it should look: id8agency.com/jeremiah/jeremiah1.png (sorry, I don't have enough reputation to post more than 2 links)
Things I've tried:
Set height and min-height to 110% (works, but creates a scroll bar on
the desktop site)
Set height to height of content (works, but not all pages will be the
same length, so creates a scrollbar on some pages where content is
shorter)
Set position:absolute and and position bottom:0px (doesn't work,
positions the div at the bottom of the viewport, not the bottom of the page)
Set meta viewport tag to height=device-height and height=1000 (breaks
the responsive functionality of the website)
Thank you for any help you can provide!
try having the .navigation element be position: fixed; and then place the the content in the right in its own wrapper (something like .content-right).
Then set these properties on the .content-right element include a media query "reset" for when everything goes to one column (XXX is the breakpoint):
.content-right {
margin-left: 240px;
}
#media screen (max-width: XXX){
.content-right {
margin-left: auto;
}
}
Why don't you put on outer div and apply the background of the sidebar (sliced so it can be repeated on the y axis) to it and repeat-y?
It will expand up to the content end and when you don't need it anymore, you can remove the background from the media queries.
The problem also appears when I set my desktop browser viewport to a small height. I think the problem is, that all the 100%-heights here are relative to the viewport, and I think you want the navigation bar to be the height of the content, not the viewport.
But possible solutions would be to set a faux column on the #container-element (see http://alistapart.com/article/fauxcolumns).
Another possibility would be to measure the height of the #container-element with jquery and assign it to the navigation-bar. Something like:
var containerHeight = $('#container').height();
$('#navigation-container').css('height',containerHeight);
(I haven't checked if it works, but I think it should.)

Footer moves up from bottom of page in IE10

I am working on an MVC site and I am having trouble getting the footer to stay at the bottom of the page in IE10. For some reason it will appear at the bottom of the window originally when the page is loaded but then it will stay in the same position even when you scroll down and hence the footer is no longer at the bottom of the page.
What is strange is that when you resize the window the footer is then fixed at the bottom of the page.When you return the page to full size the footer is still fixed at the bottom of the page. If you refresh the page or go to a new page the footer is then no longer fixed at the bottom of the page.
I have tried a few CSS solutions to create a Sticky Footer and they have worked in Firefox,Chrome and all the older IE's but not IE10. I have tried ryanfait's solution and cssstickyfooter but neither have worked for me.
I have the following CSS code for my footer currently:
#footer{background:#098a9d url(../img/headFootShadow.png) repeat-x 0 -8px;padding:20px 0 0;display:block;height:65px;margin-top:30px;color:#fff}
#footer a{color:#FFF;font-weight:700;text-decoration:none}
#footer a:hover{text-decoration:underline}
/*Sticky footer hack*/
html, body {height: 100%;}
html#lightbox{height:auto;}
#fullWrap {min-height: 100%;}
#main {overflow:auto;padding-bottom:105px;} /* must be same height as the footer*/
#footer {position: relative;margin-top: -85px; /* negative value of footer height */height:65px;clear:both}
As I said this works perfectly for Chrome,Firefox and the older IE's but not IE10. Would anyone know how to fix this or a possible workaround that would work? Any help will be greatly appreciated.
Many Thanks
Bernard

Sticky footer doesn't reach the right and left sides of browser window

Continuation from CSS footer from cssstickyfooter.com not working correctly
This footer from http://www.cssstickyfooter.com/ isn't reaching the edges of the Browser's window:
The footer should be "touching" the right and left sides of the window, but as you can see, there seems to be a small margin. Honestly, I'm not sure how to start fixing this. But I don't think it's a bug because it renders the same way in Chrome, Firefox, and I think even in Internet Explorer.
Add to your code
html, body { padding: 0; margin: 0; }
to prevent spaces around your footer

Safari blocks mouse click for links aligned with unrelated image

http://www.stringfieldassociates.com/
In Safari, all nav links that are horizontally aligned with the large central image are blocked and can't be clicked. It's like the image is taking up the width of the page, but it's not--it has a set width and height, and the only CSS applied to it is margin-top and a negative margin-right to position it. I had used positioning before but this bug cropped up in Firefox and IE. Using margins for positioning worked fine everywhere but Safari, apparently.
The image is inside the div that makes up the blue bar on the top. That bar is a div and it just has the menu as a list and then the image.
Any ideas? I almost never see Safari bugs that aren't also in Firefox, so I am stumped.
Jeremy
I would go with:
#header_img{
left: 50%;
margin-left:-230px;
position: absolute;
}
Try using an absolute position on that header image instead of a negative margin right.

Resources