Results 1 to 7 of 7

Thread: Lightbox image viewer: Style the "rev" link?

  1. #1
    Join Date
    Apr 2008
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Lightbox image viewer: Style the "rev" link?

    1) Script Title: Lightbox image viewer 2.03a

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem: Is there a way to style the rev link in the <a href>?

    Here's the two codes I tried (in red), but neither worked. The first code is a class style from an external CSS style sheet (.red).

    <a class="red" href="image.jpg" rel="lightbox" title="Go to another page" rev="/anotherPage.html">Image</a>

    <a style="color:red" href="image.jpg" rel="lightbox" title="Go to another page" rev="/anotherPage.html">Image</a>

    Thanks,

    JackJack


  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    are you trying to apply the CSS to the link, or to the lightbox content?

  3. #3
    Join Date
    Apr 2008
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    To the link in the lightbox content window. The rev link that says "Go to another page".

  4. #4
    Join Date
    May 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Try this:

    <a style="color:red;" href="image.jpg" rel="lightbox" title="Go to another page" rev="/anotherPage.html">Image</a>

    Basically you needed the semicolon after red.

  5. #5
    Join Date
    Apr 2008
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Nope. Doesn't work.

  6. #6
    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

    The class of the link in the lightbox is:

    ddcaptionurl

    So, in your stylesheet you can:

    Code:
    .ddcaptionurl:link {
    color:red;
    }
    .ddcaptionurl:active {
    color:red;
    }
    .ddcaptionurl:visited {
    color:red;
    }
    .ddcaptionurl:hover {
    color:red;
    }
    You can add other property/value pairs besides just color:red; - and you may have different values for the same property for the different states (link, active, visited, hover).

    If you need more info on style, see:

    http://www.eskimo.com/~bloo/indexdot...pindex/all.htm

    or your favorite css reference.
    - John
    ________________________

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

  7. The Following User Says Thank You to jscheuer1 For This Useful Post:

    JackJack (05-15-2008)

  8. #7
    Join Date
    Apr 2008
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Success!

    It worked!

    Thanks for the help, jscheuer1.


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
  •