Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Member #
    29717
    Liked
    1 times
    SOLVED: See Second Post.
    Hello,
    I just finished making a site, but there are a couple of things not working properly.
    Most pressingly, my image gallery won't scroll horizontally, as it should.
    I set the DIV to have x overflow, and y overflow hiddden. And the horizontal scroll bar appears, but there is nothing to scroll through, even though there are several images past the edge.

    Here is my website:
    http://www.finnhaverkamp.com

    Below is my CSS sheet. The ID I'm using specifically is #Box2. I've spaced it for you.
    Of course, you can see the HTML at the website itself.

    Code:
    body
    {
        margin: 20px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        background-position:center center;
        background-repeat:no-repeat;
        background-color: black;
    }
    
    #layoutouter {
        width: 920px;
        height: 500px;
        margin: 20px auto;
        border: 5px solid black;
        position: relative;
        background-repeat: no-repeat;
        z-index:1;
    }
    
    #layoutinner {
        background-repeat: no-repeat;
        width: 854px;
        height: 386px;
        margin: 40px 0px 0px 40px;
        border: 0px solid white;
        position: relative;
        z-index:2;
    
    }
    
    #left{
        background: url(images/modified/treebox.jpg);
        width: 150px;
        height: 150px;
        margin: 90px 0px 0px 0px;
        border: 1px solid white;
        position: relative;
        filter:alpha(opacity=60);
        opacity:0.6;
        text-align:center;
        cursor:pointer;
        z-index:5;
    }
    
    #lefttext{
        display: block;
        margin: 0px 0px 0px 0px;
        padding:0px 0px 0px 0px;
        filter:alpha(opacity=0);
        opacity:0.0;
        text-align:center;
        color:white;
        font-family:"Rough_Typewriter";
        font-size:25pt;
        width: 155px;
        height: 106px;
        cursor:pointer;
        z-index:6;
    }
    
    #box1
    {
        background:url(images/modified/createversion2.jpg);
        width: 500px;
        height: 450px;
        margin: 20px 0px 0px 250px;
        padding: 0px 0px 0px 0px;
        border: 1px solid white;
        position: absolute;
        color:white;
        bg-color:white;
        background-color:white;
        display: none;
        text-align:center
        filter:alpha(opacity=95);
        opacity:0.95;
        z-index:11;
    }
    
    #topmid{
        background: url(images/modified/duomoboxframe.jpg);
        width: 200px;
        height: 100px;
        margin: 0px 0px 0px 200px;
        border: 1px solid white;
        position: relative;
        filter:alpha(opacity=60);
        opacity:0.6;
        text-align:center;
        cursor:pointer;
        z-index:3;
    }
    
    #topmidtext{
        display: block;
        margin: 0px 0px 0px 0px;
        padding:0px 0px 0px 0px;
        filter:alpha(opacity=0);
        opacity:0.0;
        text-align:center;
        color:white;
        font-family:"Rough_Typewriter";
        font-size:20pt;
        width: 201px;
        height: 51px;
        cursor:pointer;
        z-index:4;
    }
    
    #box2
    {
        background:url();
        width: 920px;
        height: 510px;
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 10px 0px;
        border: 1px solid white;
        position: absolute;
        color:white;
        bg-color:white;
        background-color:white;
        display: none;
        text-align:center
        filter:alpha(opacity=95);
        opacity:0.95;
        overflow-y:hidden;
        overflow-x:scroll;
        z-index:15;
    }
    
    #right{
        background: url(images/modified/relaxingtall.jpg);
        width: 115px;
        height: 210px;
        margin: 0px 0px 0px 650px;
        padding: 0px 0px 0px 0px;
        border: 1px solid white;
        position: relative;
        filter:alpha(opacity=60);
        opacity:0.6;
        text-align:center;
        z-index:7;
        overflow:visible;
    }
    
    #righttext{
        display: block;
        margin: 0px 0px 0px 0px;
        padding:0px 0px 0px 0px;
        filter:alpha(opacity=0);
        opacity:0.0;
        text-align:center;
        color:white;
        font-family:"Rough_Typewriter";
        font-size:25pt;
        width: 216px;
        height: 111px;
        z-index:8;
        overflow:visible;
    }
    
    #box3
    {
        background:url();
        width: 920px;
        height: 500px;
        margin: 25px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        border: 1px solid white;
        position: absolute;
        bg-color:black;
        background-color:black;
        display: none;
        text-align:center
        filter:alpha(opacity=95);
        opacity:0.95;
        overflow:auto;
        z-index:16;
    }
    
    #bottomright{
        background: url(images/modified/heartdunetall.jpg);
        width: 96px;
        height: 210px;
        padding: 0px 0px 0px 0px;
        margin: -145px 0px 0px 600px;
        border: 1px solid white;
        position: relative;
        filter:alpha(opacity=60);
        opacity:0.6;
        text-align:center;
        z-index:9;
        overflow:visible;
    }
    
    #bottomrighttext{
        display: block;
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        border: 0px 0px 0px 0px;
        filter:alpha(opacity=0);
        opacity:0.0;
        text-align:center;
        color:white;
        font-family:"Rough_Typewriter";
        font-size:25pt;
        width: 216px;
        height: 111px;
        z-index:8;
        overflow:visible;
    }
    #box4
    {
        background:url();
        width: 920px;
        height: 450px;
        margin: 20px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        border: 1px solid white;
        position: absolute;
        color:white;
        bg-color:black;
        background-color:black;
        display: none;
        text-align:center
        filter:alpha(opacity=95);
        opacity:0.95;
        z-index:18;
        overflow:auto;
    }
    
    #logo
    {
    margin: 345px 0px 0px 29px;
    color: white;
    font-family:"Rough_Typewriter";
    font-size: 45px;
    z-index:10;
    }
    
    ul.gallery
    {
    list-style-type:none;
    margin:0;
    padding:0;
    }
    
    ul.div
    {
    list-style-type:none;
    margin:0;
    padding:0;
    }
    
    li.photo
    {
    float:left;
    color:#FFF;
    overflow:hidden;
    }
    
    li.divvisible
    {
    float:left;
    color:#FFF;
    overflow:visible;
    }
    
    li.divhidden
    {
    float:left;
    color:#FFF;
    overflow:hidden;
    }
    
    li.right
    {
    float: right;
    }
    
    p
    {
        color:white;
        filter:alpha(opacity=100);
        opacity:1.0;
        text-align:center
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        font-family:"Rough_Typewriter";
        font-size: 25px;
        z-index:20;
    }
    p.black
    {
        color:white;
        filter:alpha(opacity=100);
        opacity:1.0;
        text-align:center
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        font-family:"Rough_Typewriter";
        font-size: 25px;
        font-style: strong;
        z-index:20;
    }
    
    .rollover:hover
    {
        filter:alpha(opacity=100);
        opacity:1.0;
        overflow:visible;
    
    }
    
    a:link {color:white;}    /* unvisited link */
    a:visited {color:white;} /* visited link */
    a:hover {color:white;}  /* mouse over link */
    a:active {color:white;}  /* selected link */
    
    .adbar_links
    {
        display:block;
        height:100%;
        width:100%;
        background-color:transparent;
            text-decoration:none;
        overflow:visible;
    }
    
    .adbar_links3
    {
        display:block;
        height:100%;
        width:100%;
        background-color:black;
        filter:alpha(opacity=100);
        opacity:1.0;
            text-decoration:none;
        overflow:visible;
    }
    
    a.adbar_links:active, a.adbar_links:visited
    {
        display:block;
        height:100%;
        width:100%;
        background-color:transparent;
            text-decoration:none;
        overflow:visible;
    }
    
    a.adbar_links:hover
    {
        display:block;
        height:100%;
        width:100%;
        background-color:transparent;
            text-decoration:none;
        overflow:visible;
    }
    
    .adbar_links2
    {
        display:block;
        height:100%;
        width:100%;
        background-color:transparent;
            text-decoration:none;
        overflow:visible;
    }
    In my earlier testings, if I set my overflow to auto or scroll, the div does scroll vertically. But it simply refuses to scroll horizontally. Any ideas? Thanks in advance.

  2.  

  3. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Member #
    29717
    Liked
    1 times
    Solved!
    I set the width of the list, the ul.gallery class, to something like 3000, allowing all of the photos to fit within.
    AlphaMare likes this.

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by Gryffin, post: 222522
    Solved!
    I set the width of the list, the ul.gallery class, to something like 3000, allowing all of the photos to fit within.
    Gryffin - thanks for posting the solution. We often have folks who solve their problems here, and then simply post "Fixed it!" or some such, without sharing the solution!

    I's nice to see that you're sharing the info - that's what these forums are all about. And it got you your first "Like"!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com