PDA

View Full Version : Match look-and-feel of HTML-only gallery to rest of the site


giorci
Oct-16-2008, 08:46 AM
Hi,

I created an HTML-only gallery to contain several keyword-generated galleries that follow the progress of my son at different ages (check "Francesco" under Special Galleries on my homepage at http://giorci.smugmug.com ).

Now I would like to match the look-and-feel of this page to that of all the other pages of my site: a gradient box, the same style for text and links, two columns of thumbnails, etc.

Can you help me get the right CSS code in place so that the HTML I have to enter in the description box is not too huge and ugly?

Thanks!
Stefano

Allen
Oct-16-2008, 06:16 PM
Hi,

I created an HTML-only gallery to contain several keyword-generated galleries that follow the progress of my son at different ages (check "Francesco" under Special Galleries on my homepage at http://giorci.smugmug.com ).

Now I would like to match the look-and-feel of this page to that of all the other pages of my site: a gradient box, the same style for text and links, two columns of thumbnails, etc.

Can you help me get the right CSS code in place so that the HTML I have to enter in the description box is not too huge and ugly?

Thanks!
Stefano
This isn't perfected yet but replace the gallery description with this.

<html>
<div id="FrancescoHtml" class="box">
<div class="boxTop">
<h3 class="title notopmargin">Francesco galleries, as he grows up</h3>
</div>
<div class="boxBottom">

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-0to3m">
<img src="/photos/385597150_LcqXq-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-0to3m" class="nav">0-3 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-3to6m">
<img src="/photos/386078864_cgjKX-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-3to6m" class="nav">3-6 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-6to9m">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-6to9m" class="nav">6-9 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-9to12m">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-9to12m" class="nav">9-12 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-12to18m">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-12to18m" class="nav">12-18 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-18to24m">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-18to24m" class="nav">18-24 Months</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-2yrs">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-2yrs" class="nav">2 Years</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-3yrs">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-3yrs" class="nav">3 Years</a>
</p>

<div class="spacer"></div>
</div>

<div class="miniBox albumLarge">

<div class="photoLarge">
<a href="/keyword/francesco-4yrs">
<img src="/photos/xxxxxxxx_xxxxx-Th.jpg" class="imgBorder" border="0" height="150" width="150">
</a>
</div>

<p class="albumTitle">
<a href="/keyword/francesco-4yrs" class="nav">4 Years</a>
</p>

<div class="spacer"></div>
</div>

</div> <!-- closes boxBottom -->

</div> <!-- closes FrancescoHtml -->
</html>

Add this to your CSS

.gallery_5943943 .boxBottom .albumLarge {width:192px; height:220px; text-align:center; margin:0 24px;}
.gallery_5943943 .albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.gallery_5943943 .albumLarge .albumTitle {width:192px;}

giorci
Oct-17-2008, 01:31 AM
Thanks a lot, Allen, this is great!

The only (small) issue seems to be that the gradient background doesn't display correctly in Firefox (I only see the very top of it). Looks good in IE though.

Any clue of why that's happening?

Thanks again, you made this really easy for me now.

Stefano

Allen
Oct-17-2008, 07:57 AM
Thanks a lot, Allen, this is great!

The only (small) issue seems to be that the gradient background doesn't display correctly in Firefox (I only see the very top of it). Looks good in IE though.

Any clue of why that's happening?

Thanks again, you made this really easy for me now.

Stefano
That's why I said it wasn't perfect.:D But a least it's a start.
Maybe use some CSS to turn off the background.

Think I found a solution.
Add the red spacer and see if it fixes it.

<div class="spacer"></div>
</div>
<div class="spacer"></div>
</div> <!-- closes boxBottom -->

</div> <!-- closes FrancescoHtml -->

giorci
Oct-17-2008, 08:55 AM
That did it !!! Perfect!

Thank you again, you're the man!

Stefano


That's why I said it wasn't perfect.:D But a least it's a start.
Maybe use some CSS to turn off the background.

Think I found a solution.
Add the red spacer and see if it fixes it.

<div class="spacer"></div>
</div>
<div class="spacer"></div>
</div> <!-- closes boxBottom -->

</div> <!-- closes FrancescoHtml -->