How to add images to Headings?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

How to add images to Headings?

Post by ryan »

how do I add images to heading styles? i would like a small arrow to appear to the left of one of my heading styles. How do i add this image to the style so it appears automatically with the assignment of the style without manually adding it each time?

So far i have the following CSS properties set to:

mc-image ................. image.pdf
mc-image-position ....... left
mc-image-spacing ....... 1px

But the image still does not appear next to the heading.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: How to add images to Headings?

Post by Andrew »

In the heading class (or heading element, if you are not using a separate class), use the background-image property to add your image, and then adjust your text using the margin properties (margin-left, margin-right, etc.) to make sure your text does not cover the image.
Flare v6.1 | Capture 4.0.0
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: How to add images to Headings?

Post by LTinker68 »

FYI... I think the mc-image fields are for Flare features like the togglers and drop-downs and that's why it didn't seem to work with the heading styles (no Flare effect in the heading that would call the mc-image attributes).
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

Re: How to add images to Headings?

Post by ryan »

Andrew wrote:.. and then adjust your text using the margin properties (margin-left, margin-right, etc.) to make sure your text does not cover the image.
How do I adjust the text to indent but keep the image with a zero indent?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: How to add images to Headings?

Post by LTinker68 »

The background image, by default, will be flush to the left and top margins of the "box" around the heading. The text is controlled by the margin and padding, but in this case you'll probably just need to adjust your padding-left and possibly the padding-top, depending on what your image looks like.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: How to add images to Headings?

Post by Andrew »

Whoops, that should have been padding, not margin. :oops: Sorry about that!
Flare v6.1 | Capture 4.0.0
ryan
Propeller Head
Posts: 59
Joined: Thu Dec 11, 2008 10:51 am

Re: How to add images to Headings?

Post by ryan »

Got it -- thanks!
Post Reply