Results 1 to 4 of 4

Thread: center align lightbox

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    914
    Thanks
    118
    Thanked 2 Times in 2 Posts

    Default center align lightbox

    Hey all,

    In this portfolio section you can click on images, and they will pop up enlarged.
    But the enlarged images do not show up aligned centered. Smaller images tend to show towards the left.
    How come?

    And when enlarged how can I get the arrow to be shown as a minimize icon?

    Thanks for helping me out here!

  2. #2
    Join Date
    Jan 2009
    Location
    NH
    Posts
    673
    Thanks
    97
    Thanked 26 Times in 26 Posts

    Default

    Open the nivo-lightbox.css and add

    Code:
    margin-left:auto;
    margin-right:auto;
    I'm not sure about the arrow.

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    914
    Thanks
    118
    Thanked 2 Times in 2 Posts

    Default

    Thanks for your reply.
    I added it here:
    Code:
    .nivo-lightbox-image img {
    	max-width: 100%;
    	max-height: 100%;
    	margin-left:auto;
        margin-right:auto;
    	vertical-align: middle;
    }
    and here:

    Code:
    .nivo-lightbox-content {
    	width: 100%;
    	height: 100%;
    	margin-left:auto;
        margin-right:auto;
    }
    But it doesn't seem to work.

    Here's the full code.

  4. #4
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    914
    Thanks
    118
    Thanked 2 Times in 2 Posts

    Default

    Anyone, please?

Similar Threads

  1. solidblockmenu Align Center
    By girish_327 in forum CSS
    Replies: 0
    Last Post: 06-08-2011, 03:58 PM
  2. align center
    By Toshk in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-29-2008, 01:45 PM
  3. Center align within Javascript
    By Lost in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 08-28-2007, 06:11 AM
  4. Center align the pop up window.. please help
    By sanjoeapen in forum JavaScript
    Replies: 1
    Last Post: 01-19-2007, 07:23 AM
  5. Center align a table
    By MBX in forum HTML
    Replies: 8
    Last Post: 12-29-2006, 05:25 PM

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
  •