Images question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Images question

Post by holysjit »

Hi,

First question:
Is it possible when I upload an image it will be resized to 200x150?

Second question:
How can I put some borders about a image? CSS?

Thanks
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

In the config screen you can adjust the size of thumbnail that s9y creates, however I believe this is only based on width, so you would need to make sure your original has a 4:3 aspect ratio to get 200x150.

As for adding borders, yup css is the way to go.
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

if I remember correctly, a placed image has an inline style of border:0; which you might want to remove or change

HTH

Dave
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Dave raises a good point that I had forgotten. Basically, if you insert an image without a comment than s9y adds a style="" into the HTML for the image, and you may need to remove this before you save your entry.
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

carl_galloway wrote:.....adds a style="" into the HTML for the image, and you may need to remove this before you save your entry.
or use border: 1px solid #color!important to override the inline style, especially if a lot of entries already exist and editing all of them might be a lot of work.
=Don=
Post Reply