CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
[Solved] Layout perfect in Safari but misbehaving in Firefox!
npmm
Permalink to comment
#
September 2011
Hello, I'm working on a school project and I have a jQuery gallery in a div that works just fine in Safari but it gets cropped by the navigation bar in Firefox. I don't know where I'm going wrong but here is the CSS:
.galleria-container {
height: 90%;
overflow: hidden;
position: fixed;
margin-top: 10%;
left: 0;
width: 96%;
background: #fff;
}
.galleria-container img {
-moz-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.galleria-stage {
width: 98%;
height: 75%;
margin-left: 1%;
position: absolute;
z-index: -2;
}
Thanks in advance for your help!
I'm pretty new to this!
npmm
Permalink to comment
#
September 2011
Here is a link to the site if that helps:
http://www.grayscale.net63.net/
Paulie_D
Permalink to comment
#
September 2011
Link does not take you to indicated location at the moment.
npmm
Permalink to comment
#
September 2011
It works for me... Can anyone identify why a div looks much lower down on the screen in Firefox only?
chrisburton
Permalink to comment
#
September 2011
Fix these, first
.
thomas
Permalink to comment
#
September 2011
The problem is with your margin-top property for your ".galleria-container" rule on line 15 of
http://www.grayscale.net63.net/js/galleria.fullscreen.css?1317251748254
.
Either adjust it to something smaller than 10%, or try and figure out why Mozilla is treating it differently than WebKit.
npmm
Permalink to comment
#
September 2011
I changed the margin-top to a px value rather than % and it worked just fine. Currently working on closing my tags properly. Thank you for your help.
Add a Comment
.galleria-container {
height: 90%;
overflow: hidden;
position: fixed;
margin-top: 10%;
left: 0;
width: 96%;
background: #fff;
}
.galleria-container img {
-moz-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.galleria-stage {
width: 98%;
height: 75%;
margin-left: 1%;
position: absolute;
z-index: -2;
}
Thanks in advance for your help!
I'm pretty new to this!
Either adjust it to something smaller than 10%, or try and figure out why Mozilla is treating it differently than WebKit.