Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    Light-box and CSS positioning

    Hello

    I have a 'test' lightBox page here:

    http://www.bayingwolf.com/LightBox/box.html (based on free customisable code).

    It has two external CSS style sheets:

    <link rel="stylesheet" href="index_files/vlb_files1/vlightbox1.css" type="text/css" />

    <link rel="stylesheet" href="index_files/vlb_files1/visuallightbox.css" type="text/css" media="screen" />
    I can't seem to centre those images (or otherwise change their position) on the page or change the space between them, because I can't see which attribute governs their positioning! I have tried all kinds.

    If anyone has experience of these light-boxes and CSS, I would be grateful.

    Thank you.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,020
    Thanks
    15
    Thanked 239 Times in 239 Posts
    If you open the page with Firefox, right click on it and choose 'select all', then right click again and choose 'view selection source' you will see the code that javascript and lightbox puts on the page. This is the code that you have to style for. You may want to put lightbox inside another div and position that div.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • Users who have thanked DrDOS for this post:

    SteveH (10-01-2013)

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post
    Thanks DrDos

    Downloaded Firefox - that make 'identification' a lot easier, though I have to say that in IE the page looks immeasurably better.

    I will work on those <div>s, then.

    Thanks for pointing it out.

    Steve

  • #4
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,020
    Thanks
    15
    Thanked 239 Times in 239 Posts
    Quote Originally Posted by SteveH View Post
    Thanks DrDos

    Downloaded Firefox - that make 'identification' a lot easier, though I have to say that in IE the page looks immeasurably better.

    I will work on those <div>s, then.

    Thanks for pointing it out.

    Steve
    It's very likely that whoever coded it only checked it in IE, or thought that it would only be seen by IE users. IE only has about 50% of the 'browser market' now, even for Windows users.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    Posting Permissions

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