Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dan Mackman

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dan Mackman got a reaction from Jane B in Lightbox clashing with fadeslideshow   
    Thank you so much - it s fixed!
  2. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Ahh right OK. I saw that you're not using a DOCTYPE - that might be the problem.
     
    Insert this into the very first line of code (it should be before everything else in the code):
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Ahh nice one, I was just trying to work out the problem myself.
     
    Good luck,
     
    Darren
  4. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    I'm not quite sure why IE is pushing it right to the top. It could be because there isn't much available vertical space for it. Try adding a dozen <br> after the image gallery to increase the vertical space and see if it works then.
     
    Darren
  5. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Dan,
     
    This isn't a solution to this particular problem, but a suggestion for avoiding the problem entirely. How about having one fixed box where the rollover images appear, instead of having it always appear under the image. Then you can use your Javascript to make the one box change to whichever image is highlighted. You can float this box to the left, or have it below, or whatever, because it would be static.
     
    Darren
  6. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Yeah that's a good solution, lightboxes are pretty good. Although personally I'd prefer (as a user) to have one which has Previous and Next controls - makes it easier than opening one, closing it, opening another, etc.
     
    Darren
  7. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Dan,
     
    I'm surprised a lightbox software is using absolute positioning for something like these images. It's not a good method of doing it, and is prone to looking wrong as soon as something else changes on the page and pushes the images down/up, which it looks like has happened here.
     
    My recommendation is you find another lightbox program to use (a simple but effective one is Slimbox), but if you want to continue using this one, you're going to have to edit the CSS to make these magnifying icons fit in place. You should add:
     

    .enlargecaption { margin-left:5px; margin-top:-13px; }
     
    ...to your CSS sheet to align all the icons to the bottom left. As previously mentioned, be aware that if you add another paragraph above the images for example, the images will move down but the icons will remain in the same place. You'll have to change the CSS sheet again to compensate. This is why absolute positioning sucks for this kind of use.
     
    Let me know if you have any further issues with it, but please consider my recommendation, I think it'll save you some time and a pretty bad headache keeping everything inline.
     
    Darren
  8. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    I'd recommend you take the time to use Slimbox - the vast majority of it is HTML anyway, you shouldn't need to do anything with Javascript, and you appear to have CSS knowledge, that's all there is to it. There is some usage text on the website to explain how integrate it, which basically boils down to just a few steps:
    - Upload all the relevant files to your server
    - Include the CSS and Javascript files in your header
    - Include the rel="lightbox" code into your links and you're good to go
     
    If you're determined to stick with the current gallery then I don't think I can help you as I think you're going to come across more problems when you try to get your site working in older browsers, which using absolute positioning is going to make difficult.
     
    Darren
  9. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    Hey Dan,
     
    No worries, we're here to help.
     
    I can see straight away you're not referencing the Lightbox CSS file properly. Remove the <style></style> from the header, it's not needed when you're linking to an external file. I think you'll find a bit of an improvement then
     
    Darren
  10. Like
    Dan Mackman reacted to dmpinder in rollover images going off screen!   
    No problem Dan, this is why we're here.
     
    Do me a favour and +1 my post that helped you? Helps my Rating on this site. Thanks!
     
    A couple of tips about using Lightbox:
    - Add the code title="My Image" to your <a> to include a caption in the lightbox image, e.g. <a href="image.jpg" title="My Image">...</a>
    - If you have more than one image you can link them into a Gallery by amending the rel="lightbox" to rel="lightbox[galleryname]" instead. This will mean that Previous / Next buttons will appear in the Lightbox to scroll between them.
     
    Good luck, and feel free to PM me if you have any problems.
     
    Darren

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.