Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-17-2007, 08:46 AM   #1
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
Css help need for changing img box to code

Hi, can someone help me with changing these sets of image boxes into css.

set 1: five boxes in a row same distance apart with the brownish color being the background like this. [brown 1-2px [pic insert] 1-2px brown]

set 2: single cream color box with border. [border [pic insert] border] cream color is the background, no space before border and pic insert

thanks in advance


Code:
http://pspdump.com/boxes.jpg
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-17-2007, 09:03 AM   #2
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
I'm not sure if I understand completely, but here's how to do it for what I think you mean (which would just be borders around images):

In between your <style> tags:
.border1 {border: 2px solid #color;}
.border2 {border: 1px solid #color;}

where #color is the hex value of the color you want the border to be.
then, to put it around the image, do this:

<img src="whatever.jpg" class="border1"> for the 2 pixel border
<img src="whatever.jpg" class="border2"> for the 1 pixel border
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-17-2007, 10:08 AM   #3
ungratefulninja
Confirmed User
 
Join Date: Apr 2006
Posts: 682
You could do something like the following, and just adjust margins and padding to achieve desire effect:

.brownsquare {
background: #colorcode;
padding: 2px;
margin: 2px;
}

.creamsquare {
background: #colorcode;
border: 1px solid #colorcode;
padding: 2px;
}


<img src="image.jpg" class="brownsquare">
<img src="image.jpg" class="creamsquare">
ungratefulninja is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2007, 01:09 AM   #4
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
thanks... everything worked
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.