Go to Post The most successful FIRST sponsor would be the one that put the most HS students into science and engineering programs at colleges and universities. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-05-2006, 21:19
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Question Markup help

(For want of a better title.)

I'm trying to get a demo gallery To display captions without causing the line of images to break (when they're big or small). The idea is to have the images in a single row (unless you've got a narrow browser) and not break.

The problem is I still want the caption under the image in question.

(Click on the images to see what I mean. Only the first one has a caption.)

Can anyone help me figure out a solution?

(I got the idea and code from Web Monkey)
  #2   Spotlight this post!  
Unread 18-05-2006, 22:54
Timothy D. Ginn's Avatar
Timothy D. Ginn Timothy D. Ginn is offline
I check here maybe once a year.
no team
 
Join Date: Apr 2003
Rookie Year: 2002
Location: Port Perry, ON. Canada
Posts: 247
Timothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to all
Send a message via ICQ to Timothy D. Ginn Send a message via AIM to Timothy D. Ginn Send a message via MSN to Timothy D. Ginn Send a message via Yahoo to Timothy D. Ginn
Re: Markup help

I'm not too sure how well this sort of thing would work when stuff's being actively resized; but, for the version of a website I'm working on I did:

Code:
<div id="biophotos">
<span style="float: left;"><center><a href="ort.php?bio=adam"><img src="img/bio/adam.jpg" alt="Coordinator">
<br>Adam
<br>(Coordinator)</a></center></span>

<span style="float: left;"><center><a href="ort.php?bio=heather"><img src="img/bio/heather.jpg" alt="Communications">
<br>Heather
<br>(Communications)</a></center></span>
<span style="float: left;"><center><a href="ort.php?bio=mark"><img src="img/bio/mark.jpg" alt="Logistics">
<br>Mark
<br>(Logistics)</a></center></span>
<span style="float: left;"><center><a href="ort.php?bio=tim"><img src="img/bio/tim.jpg" alt="Information Technology">
<br>Tim
<br>(Information Technology)</a></center></span>
</div>
Edit: I should probably note that I haven't tested that in Internet Explorer, yet.
__________________
Alumni of FRC Team 1006
Former mentor of Full Lego Alchemist (FLL 5621) - Sempar School / Computing Students' Association of Queen's University

Last edited by Timothy D. Ginn : 18-05-2006 at 23:05. Reason: Remove unnecessary quote / add disclaimer about IE
  #3   Spotlight this post!  
Unread 18-05-2006, 23:07
kirish's Avatar
kirish kirish is offline
Registered User
AKA: Kevin Irish
FRC #0100 (Wildcats)
Team Role: Mechanical
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Woodside, California
Posts: 19
kirish is a name known to allkirish is a name known to allkirish is a name known to allkirish is a name known to allkirish is a name known to allkirish is a name known to all
Re: Markup help

The reason why your images with descriptions are breaking is because they are block elements. Because your containing DIV and your description DIV on the first image are block elements, they expand the width of the screen and cause the remaining images to move below it.

There are a few ways to fix this, but the easiest would be to turn your A elements surrounding your images into block elements themselves, and floating them left. Therefore, the following code should fix your problems:
Code:
.livethumbnail
{
	display: block;
	float:left;
}
.footer
{
	font-size: 11px;
	text-align: center;
	color: #ccc;
	clear: both;
}
Also, I see you want the descriptions available when you hover over them. This is fairly easy using css, especially inside of an A element (which makes it IE friendly). Again, the following code should add this functionality:
Code:
.livethumbnail .caption {
	color: white;
	display: block;
}
a.livethumbnail:hover .caption {
	display: block;
}
a.livethumbnail:visited:hover .caption {
	display: block;
}
Good luck with the gallery.
__________________
"you'd better be prepared for the jump into hyperspace. It's unpleasantly like being drunk."
"What's so unpleasant about being drunk?"
"You ask a glass of water."
Closed Thread


Thread Tools
Display Modes 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) naor52 Programming 14 24-02-2007 01:19
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 01:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi