|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
GD + Border Wrapping?
Does GD have the ability to create a black 1px border around an image?
__________________
-- Jason |
|
#2
|
|||
|
|||
|
Let CSS do it.
img.px_border { border: 1px solid #000000; } <img src="image.gif" width="100" height="100" class="px_border" /> Why do you want GD to do it? |
|
#3
|
|||
|
|||
|
it is for an image upload,...I am resizing images and a few other things for the user,....I want to have an option for the user that would allow him to either have or not have a border.
I am blobbing the images as well |
|
#4
|
|||
|
|||
|
Quote:
pff, why do it the hard way? you can also just use: <img src="image.gif" border=1> that's at least something that'll work in every browser, unlike css ![]() but I'm sure it's also possible to draw a rectangle around the image will search for it ![]() |
|
#5
|
|||
|
|||
|
the <img src="img.gif" border=1> will draw a very ugly border around it. CSS will let you have the style you want.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#6
|
|||
|
|||
|
Quote:
but it won't work on most browsers, so alot of visitors won't see anything Better something what you call ugly (although I don't agree that it's ugly, it's as normal as ever) than nothing at all ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > GD + Border Wrapping? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|