banner
Advertising


Lightroom-News.com
LRN Contents
Calendar
  • February 2009
    M T W T F S S
    « Jan   Mar »
     1
    2345678
    9101112131415
    16171819202122
    232425262728  
LRN Archives
Meta
RSS Feeds


Lightroom-News.com

The lastest news and info about Adobe Photoshop Lightroom

Archive for February 2, 2009


February 2, 2009

HTML Gallery: Adding scrolling to the gallery

basicsitescroll.jpg

With apologies for the extended delay in following on with the series, here is part 6 in our continuing series on writing your own web gallery. Please note that the code section doesn’t wrap, but still can be cut and pasted to a text or code editor. In this case I’ve sacrificed readability to usability.

In our last look at creating a HTML gallery, we showed the need for Live Update, and prior to that we introduced the method of adding CSS in Lightroom. One thing I should mention about CSS generated in Lightroom, is that it doesn’t generate in the order you put in the model section of the galleryInfo.lrweb file. In fact I have no idea what sets the order. It seems quite random to me!

Anyhow, one of the easiest additions to the page that looks nice is the ability to have the images scroll along the page. Normally this would be simply put into a CSS file that Lightroom can reference. Let’s look at this initially and then add it to the main galleryInfo.lrweb code, where it can then be manipulated in a panel.