Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-17-2010, 07:26 AM   PM User | #1
sterlingcooper
New Coder

 
Join Date: Jun 2010
Posts: 43
Thanks: 12
Thanked 0 Times in 0 Posts
sterlingcooper is an unknown quantity at this point
How to align a linked image that opens in new window?

Hi everyone, CSS newbie here.

Basically I have an ul that is a group of thumbnails. You click the thumbnail, the larger image opens in a new browser window. What I would like to know is how I can align the image that opens up in the new browser window, and how I can add a caption underneath that image.

Regarding centering the image, my code is:

Code:
<ul>
        <li> <a href="cat.jpg"><img src="thumbnail.jpg"></a></li>
    </ul>
What is the CSS I can use to make the "cat" image be centered in its new browser window (and add text underneath if possible)?

Thanks for any help.
sterlingcooper is offline   Reply With Quote
Old 06-17-2010, 08:26 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Have you seen the Lightbox effect?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
sterlingcooper (06-17-2010)
Old 06-17-2010, 11:05 AM   PM User | #3
Maricha
New to the CF scene

 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Maricha is an unknown quantity at this point
As a newbee I would have a htm-page for the largerpic - I don't know how many you have or what size the pics are or what the caption should be

or as an advanced-bee I would make a JScript to open a new browser-window in a specific size and document.write the content for the new-page
This I guess will be complicated if the caption is an explanation about the pic.

My 2 cents
Maricha is offline   Reply With Quote
Old 06-17-2010, 11:08 AM   PM User | #4
Zoic
New Coder

 
Join Date: Jan 2010
Location: UT
Posts: 35
Thanks: 1
Thanked 3 Times in 3 Posts
Zoic is an unknown quantity at this point
Quote:
Originally Posted by abduraooft View Post
Have you seen the Lightbox effect?
I too suggest using a lightbox effect. Opening up more windows/popups can get a bit annoying at times.
__________________
Just here to help.
Zoic is offline   Reply With Quote
Old 06-17-2010, 09:16 PM   PM User | #5
sterlingcooper
New Coder

 
Join Date: Jun 2010
Posts: 43
Thanks: 12
Thanked 0 Times in 0 Posts
sterlingcooper is an unknown quantity at this point
Quote:
Originally Posted by abduraooft View Post
Have you seen the Lightbox effect?
That worked great, thanks for the link. I've seen it before on another site but I didn't know what it was called, or that I would be able to use it.
sterlingcooper is offline   Reply With Quote
Old 06-19-2010, 02:40 AM   PM User | #6
Major Payne
Regular Coder

 
Join Date: Aug 2005
Location: MS
Posts: 745
Thanks: 7
Thanked 65 Times in 63 Posts
Major Payne is an unknown quantity at this point
These may also be of some interest:

VisualLightBox is a free wizard program that helps you easily generate online photo albums, lightbox gallery with a nice Lightbox-style overlay effect, in a few clicks without writing a single line of code: http://lightbox2.com/lightbox2-how.html

Free Jalbum web album software: http://jalbum.net/
Lightbox 2: http://www.huddletogether.com/projects/lightbox2/
Shedding Some Light on Lightbox: http://www.webreference.com/programm...ript/Lightbox/
__________________
☠ ☠RON☠ ☠
Major Payne is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:06 PM.


Advertisement
Log in to turn off these ads.