Thanks Max, I will try your action and report back.
Walter and I have been corresponding off list, and his Remove Dimensions
action was being disabled by the Remove Paragraph Tags action that I had
applied to the image container divs.
I had made a CSS style to handle the image width/height while attempting to
undo the inline width/height attribute. It appears the browser is applying
the css stylesheet rule ahead of the inline img attribute – which I cannot
explain. I’ve checked the page in IE8, IE9, Win Firefox 11, Mac Firefox 11,
Mac Safari 5.1 & 6, and Win Chrome 18 and they all behave as I intended.
The page now also passes validation.
I am the happiest I’ve ever been about the code I am producing from FWP.
–
Ernie Simpson
On Sun, Aug 26, 2012 at 5:19 PM, max email@hidden wrote:
Hi Ernie
I have a really basic action that I use… its really really basic but
it does work.
it removes the height, width and border items from a normal image.
Just apply it to a normal image and it will make this sort of thing:
<img src="Resources/myimagea.jpeg" border="0" width="324" height="317"
alt=“myimage” style=“float:left”/>
into this:
<img src="Resources/myimagea.jpeg" alt="myimage" style="float:left"/>
you can get it from here:
https://dl.dropbox.com/u/4274685/FileChute/IMG-Tag-HWB-Removal.fwaction.zip
If you wanted to go the whole hog
you could always use the Advance - inline style mover action to move
the
style="float:left"
into the head as well.
If you did want to do that, then apply that action to the same image, add
the tag you are looking for in the HTML Tag type field, which is the
img tag, choose a class name you want to use e.g. falign and then
check the check-box, Add STYLE back to HEAD so the style is written
back into the head. The end result is this:
![myimage]()
and in then head the style is written as this
.falign { float:left }
The advantage to this method is it allows you to use the same class on
many images and avoids duplicate inline styles. This possible because you
can apply the same action and add the same class name to every image on the
page ( but not check the checkbox to write that style back to the head).
That way every other image would use the same class and the style attribute
is written only once into the head by the first image
All the best Max
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options