7 replies [Last post]
doidom
Offline
newbie
Last seen: 12 years 25 weeks ago
Joined: 2005-12-08
Posts: 7
Points: 0

My client wants to add a thin white border to all jpeg images on his site (over 300 pages)

Is it possible to do this by coding CSS Site and Style files or some other way which would let me avoid manually changing hundreds of images on hundreds of pages?

Anonymous
Anonymous's picture
Guru

Re: add border to all jpgs on site

doidom wrote:
My client wants to add a thin white border to all jpeg images on his site (over 300 pages)

Is it possible to do this by coding CSS Site and Style files or some other way which would let me avoid manually changing hundreds of images on hundreds of pages?

img {border: 1px white solid; }

That doesn't differentiate between jpegs, gifs and pngs though. anything with an img tag will be bordered with that css.

If it is a list of images why not enclose them all in a container div (let's say we call it #imgdiv) and do this:
#imgdiv img {border: 1px white solid; }

It would be really great to see a link to the page or the markup. Then we would be able to help much more.

doidom
Offline
newbie
Last seen: 12 years 25 weeks ago
Joined: 2005-12-08
Posts: 7
Points: 0

border to jpegs

goensouth.com

photographer's site most pages built long ago with Net Objects Fusion

only things that need border are jpgs (not those in flash), rest of page elements are gifs or flash navigation

thanks much!

Anonymous
Anonymous's picture
Guru

add border to all jpgs on site

Looks like you've got some work on your hands. Look on the bright side you can charge A LOT for the work. The site wasn't designed to be used with css. Needs an overhaul under the hood. Smile Incomplete doctype, deprecated tags, etc. Looks like the entire site is created with Flash.

You're probably going to have to go into all the pages and at least add a class attribute to all the images you want to be outlined.

Did you do the original layout? Smile

doidom
Offline
newbie
Last seen: 12 years 25 weeks ago
Joined: 2005-12-08
Posts: 7
Points: 0

borders for jpegs

yes it's been a work in backwards progress for 10 years and had known it was ever going to get this big I would have db'd all those images years ago

can't charge to much he's my brother in law and has been housing my family post Katrina

Anonymous
Anonymous's picture
Guru

Re: borders for jpegs

Well, try adding the img {border:1px #fff solid;} to it and see if it is acceptable. Smile

I am going to be 100% honest with you though. I don't see what adding a border to the images is going to accomplish. The pics are bright on a black background already. A white border will most likely go unnoticed.

doidom wrote:
... he's my brother in law and has been housing my family post Katrina
It's good to have family to count on in times of need. Hope all turns around for you. Smile

doidom
Offline
newbie
Last seen: 12 years 25 weeks ago
Joined: 2005-12-08
Posts: 7
Points: 0

borders for jpegs

yeah, i tried that and put 'em on all of them.

for the most part, i'm no fan of borders in print or web but I don't always make the decisions. in this case he wants to match his brochure.

i thought of another way thatay work. record action on one image in photoshop where a trim 2 pixels off h and w, readd pixels as border. then run action on all images

no problems here in san antonio we can't handle, we've been really blessed with family, friend, fema and jobs. all is working out as it usually does if one accepts things beyond their control

thank you and best regards

Anonymous
Anonymous's picture
Guru

Re: borders for jpegs

doidom wrote:
i thought of another way thatay work. record action on one image in photoshop where a trim 2 pixels off h and w, readd pixels as border. then run action on all images
Yeah, photoshop action = Easy. Smile