Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-12-21, 01:48 PM   #1
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
First, make sure you're using a good DOCTYPE or it won't work in IE.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Stick this where ever you're keeping your CSS and adjust to your needs:
HTML Code:
.thumb {
width:320px;
height:240px;
padding:4px;
background-color:#ffffff;
border-style:solid;
border-color:#000000;
border-width:1px;
}
Finally, make sure you remember to give each thumb the class:
HTML Code:
<img class="thumb" src="photo.jpg" alt="sexy photo" />
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2008-12-21, 03:11 PM   #2
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Quote:
Originally Posted by Useless Warrior View Post
Finally, make sure you remember to give each thumb the class:
HTML Code:
<img class="thumb" src="photo.jpg" alt="sexy photo" />
I like to set the html elements of a wrapper class, like this:

# CSS
HTML Code:
.thumb img {
width:320px;
height:240px;
padding:4px;
background-color:#ffffff;
border-style:solid;
border-color:#000000;
border-width:1px;
}
# HTML
HTML Code:
<div class="thumb">
<img src="photo1.jpg" alt="sexy photo 1" />
<img src="photo2.jpg" alt="sexy photo 2" />
<img src="photo3.jpg" alt="sexy photo 3" />
</div>
Notice the CSS is actually setting "img" tags, so the images don't need a class.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2008-12-21, 05:55 PM   #3
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Quote:
Originally Posted by virgohippy View Post
Notice the CSS is actually setting "img" tags, so the images don't need a class.
Oh...fancy!

Licker, you can also replace the three separate border style lines with just this:

border: 1px solid #000000;

I knew you could do it that way, but I was too lazy to find my style sheets earlier.
__________________
Click here to purchase a bridge I'm selling.

Last edited by Useless; 2008-12-21 at 05:59 PM..
Useless is offline   Reply With Quote
Old 2008-12-22, 07:16 AM   #4
Licker4U
Mean people suck, nice people swallow, are you mean or nice?
 
Licker4U's Avatar
 
Join Date: Sep 2003
Location: Lower Alabama-The Redneck Riviera
Posts: 2,377
Send a message via ICQ to Licker4U Send a message via AIM to Licker4U
Thanks guys! That's what I needed!
__________________
Submit to Girls That Squirt , Hairy Pussy Links and Best Wet Pussy
Licker4U is offline   Reply With Quote
Reply


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 -4. The time now is 05:48 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc