Image Border

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
benone
Propeller Head
Posts: 27
Joined: Sun Apr 27, 2008 11:04 pm

Image Border

Post by benone »

Hi,

I have over 50 images in my online help, i would like to add border to all the images at once(instead selcting each image and then using Object properties).

Can we do it uisng styles sheets...and if yes, how?

Thnx in adv.

Chris!!!
Adrian Durand
Propeller Head
Posts: 75
Joined: Fri Feb 17, 2006 6:33 am
Location: Midlands, UK

Re: Image Border

Post by Adrian Durand »

Hi Chris,

Assuming your images are using the 'img' style, in the stylesheet ensure that you are using the 'Advanced' view (i.e. the stylesheet should be displaying Simplified View'), and selet 'img' from the styles list.
Once selected, the right hand pane shows the properties and one of the options is Border. THis is where you can set the border properties.

As always, make a copy of the project first in case things don't work quite as expected.

Regards

Adrian
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Image Border

Post by KevinDAmery »

Well, a copy of the project is probably overkill - making a backup of the stylesheet should be sufficient for this operation.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Adrian Durand
Propeller Head
Posts: 75
Joined: Fri Feb 17, 2006 6:33 am
Location: Midlands, UK

Re: Image Border

Post by Adrian Durand »

I know, I know..

I've only just realised what I said, but fingers and brain were not toally co-ordinated this morning.... :oops:
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Image Border

Post by RamonS »

Having been bitten way too many times, make a copy of the project and a separate copy of the stylesheet...or even better two of each into really separate places. Sure, copying only the stylesheet will be sufficient for this task, but I can only recommend getting into a routine of frequently making backups.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Image Border

Post by KevinDAmery »

RamonS wrote:Having been bitten way too many times, make a copy of the project and a separate copy of the stylesheet...or even better two of each into really separate places. Sure, copying only the stylesheet will be sufficient for this task, but I can only recommend getting into a routine of frequently making backups.
Poor-man's source control system, right? (I've done that sort of thing before too....)
Until next time....
Image
Kevin Amery
Certified MAD for Flare
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Image Border

Post by RamonS »

Yea, since one has to spend money on any source control system to get it work with Flare, either for the system itself or the plug-in.
siskamoens
Propeller Head
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium
Contact:

Re: Image Border

Post by siskamoens »

Chris,

I would recommend to make a image class containing the border, instead of modifying the entire img style. That way you can apply the border class to all existing images (with a simple find/replace in the source code of your project) and keep the possibility to add other image style classes afterwards.

The easiest way to do this is by right-clicking the img block (toggle "Show Blocks" if necessary), choose Style Class - Create Style Class
Give the new style class a descriptive name (something like "withBorder") and click OK. You will be taken to the Style Sheet Editor where you can change the properties of the new style class.

Afterwards, do a search for all appearances of "<img " and replace them by "<img class="withBorder" ".
Make sure you check the "Find in source code" checkbox, and choose "Whole project" from the "Find in" drop-down.
Of course, this will only work if you have never applied style classes to images before!

Hope this works for you,

Siska
Post Reply