Results 1 to 6 of 6

Thread: CSS Popup Image Gallery

  1. #1
    Join Date
    Jul 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Popup Image Gallery

    1) Script Title: CSS Popup Image Viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ge-viewer/P10/

    3) Describe problem: If you go to http://bsva2.com/CPR/homepur.html you'll immediately see the images for the popups are stacking as opposed to showing up in a neat row. I have tried several variations on position: to no avail. Can anyone tell me what I'm doing wrong?
    Last edited by jscheuer1; 07-05-2016 at 09:44 PM. Reason: format

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The website is being blocked as "bad language" by web filters so unfortunately I cant view it.

    Can you set up a reduced test page elsewhere to demonstrate the problem, with just enough html/css to show the issue. Often this extraction exercise will help you identify the problem yourself without waiting on others to wade through a whole website of code on your behalf. JSBin, CodePen and JSFiddle are all free to use.

    You can also use the developer toolbar (F12 in most browsers) to inspect the element and modify the CSS on the fly, live in the browser.

    I did momentarily see the site on mobile before the filters kicked me out, and I saw images that were stacked on page load. This wasn't anything to do with the CSS Popup Image Viewer though because that worked fine - it was the arrangement of images from which the popups were generated that displayed the stacking issue. If this is what you mean (that you're having problems arranging the images on your page rather than there being an issue with the actual position of popups), let me know and I'll move this thread to the CSS forum (it would be a general help request rather than a DD specific one).
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    BigBadBill Is this a test page? I mainly do real estate websites and IMO the image strip vertically down the page looks odd. I would use an image grid. Look on Beverly's site and she has a few good ones.

  4. #4
    Join Date
    Jul 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mlegg View Post
    BigBadBill Is this a test page? I mainly do real estate websites and IMO the image strip vertically down the page looks odd. I would use an image grid. Look on Beverly's site and she has a few good ones.
    Yes, this is a test page and loading the images inline instead of stacked is what I'm trying, unsuccessfully, to do.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's the bootstrap css for the page (http://bsva2.com/CPR/css/bootstrap.css) that's causing the stacking of the thumbnails (around line 4897):

    Code:
    .thumbnail {
      display: block;
      padding: 4px;
      margin-bottom: 20px;
      line-height: 1.42857143;
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 4px;
      -webkit-transition: border .2s ease-in-out;
           -o-transition: border .2s ease-in-out;
              transition: border .2s ease-in-out;
    }
    And (around line 1124):

    Code:
    .img-responsive,
    .thumbnail > img,
    .thumbnail a > img,
    .carousel-inner > .item > img,
    .carousel-inner > .item > a > img {
      display: block;
      max-width: 100%;
      height: auto;
    }
    Both of these should be able to be avoided simply by globally changing the word 'thumbnail' as used in the gallery's markup and in its css styles to - say 'gallerythumbnail'.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jul 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DING DING DING! That did it! Thanks!

    Someone can mark this bad boy closed. Thanks again for everything!
    Last edited by BigBadBill; 07-06-2016 at 04:43 PM.

Similar Threads

  1. CSS Popup Image Viewer - IE7 incorrectly positioning popup image
    By Bio in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-25-2010, 03:29 AM
  2. Replies: 4
    Last Post: 08-13-2010, 09:40 PM
  3. CSS Image Gallery popup in new div?
    By SnowStorm in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-02-2008, 09:23 PM
  4. Simple Image Gallery PopUp using Javascript
    By eastboy301 in forum JavaScript
    Replies: 5
    Last Post: 03-13-2007, 04:37 PM
  5. CMotion Image Gallery Popup with marginwidth+height
    By isd in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-11-2005, 11:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •