Hi
I have an horizontal scrolling website (an ongoing list of horizontally displayed items - it needs to be able of adding new content) that is wrapping up fine at the end of the last item both on Safari and Google Chrome. On Firefox however, it is not wrapping. I set a long width on the #main div, and then position: relative on the child elements. Anything I may be missing?
Here is the code that is defining the horizontal scroll:
CSS
#main {
min-height: 100%;
width: 20000px; /* I set this as a long width*/
}
.wrapper {
min-height: 100%;
min-width:100%;
}
#primary {
z-index:4;
}
#content {
list-style: none;
z-index: 3;
}
article {
font-family: 'arno', serif;
z-index:4;
}
.entry-content {
}
/* columns of text */ /*I have added POSITION:RELATIVE here and it is working on other browsers!*/
.columnshomepage_artduc {
width: 480px;
margin: 20px 70px 0 70px;
float:left;
position:relative;
height: 480px;
font-size:26px;
letter-spacing: 0.05em;
}
.columnshomepage_rest {
width: 540px;
margin: 20px 0 0 50px;
padding-right: 50px;
float:left;
position:relative;
height: 480px;
font-size:18px;
letter-spacing: 0.05em;
}
END CSS
HTML
<div id="main" class="wrapper">
<div id="primary" class="site-content">
<div id="content" role="main">
<article id="post-5" class="post-5 page type-page status-publish hentry">
<div class="entry-content">
<div class="columnshomepage_artduc">
</div>
<div class="columnshomepage_rest">
</div>
</div><!-- .entry-content -->
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- #main .wrapper -->
END HTML
And here is the website:
http://www.artresourcestransfer.org/dev ... stransfer/
Please help!
thanks!
hor scroll not wrapping in firefox but fine on other browser
-
- Posts: 2
- Joined: October 7th, 2014, 11:30 am
- LIMPET235
- Moderator
- Posts: 39961
- Joined: October 19th, 2007, 1:53 am
- Location: The South Coast of N.S.W. Oz.
Re: hor scroll not wrapping in firefox but fine on other bro
Moving to Web Dev...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
- trolly
- Moderator
- Posts: 39851
- Joined: August 22nd, 2005, 7:25 am
Re: hor scroll not wrapping in firefox but fine on other bro
Should the page scroll by itself or is there a trigger?
For me it looks like the scrolling script is not executed at all.
For me it looks like the scrolling script is not executed at all.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
-
- Posts: 2
- Joined: October 7th, 2014, 11:30 am
Re: hor scroll not wrapping in firefox but fine on other bro
just a note: I forgot to add float:left; and position:relative; to the #article.
It's a manual horizontal scroll, no trigger. I have some tags that allow you to jump to the respective content on the page. In Firefox the page is horizontal, that's fine, but what I don't understand is why it's wrapping up fine at the end of the last item on Chrome and Safari but not on Firefox? :/
thanks
It's a manual horizontal scroll, no trigger. I have some tags that allow you to jump to the respective content on the page. In Firefox the page is horizontal, that's fine, but what I don't understand is why it's wrapping up fine at the end of the last item on Chrome and Safari but not on Firefox? :/
thanks
- jscher2000
- Posts: 11767
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: hor scroll not wrapping in firefox but fine on other bro
I think width:20000px; is the problem but what is the solution? You can set it to 5084px on my system for a good fit, but I can't think of a good automatic way to deal with it.