|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
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 |
|
|
|
|
|
#3 |
|
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"> |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
thanks... everything worked
|
|
|
|