Trying to get an acrobat text field to have the same style as adjacent text. Tried in line and tried applying a style without luck, the text is taking on a .navlink style from another html item on the page regardless.
Any suggestions ?
I’m adding it at the end of a few words.
Basically there are just two html items on the page, one for the navigation and the other quite separate with three words (full curriculum vitae) then the acrobat action. I’ve also tried putting a styled ‘.’ after the action to see if that works, still no joy.
Probably something simple I’m overlooking but I’m blind to it.
Sometime around 17/1/08 (at 16:57 -0500) seoras said:
I still cannot apply a style to the acrobat action text when the
link to the pdf is made.
It seems the only way going by a previous post is to add a page
markup. Which is not very Freeway.
Make sure there is a space character both BEFORE and AFTER the
PDF/Acrobat action item. Other text will do as well, but if you want
the action’s output to be on its own line with nothing extra, this is
what you need to do.
Here’s the reason why this is required:
Text styling is normally applied using tags wrapped around text. The
Acrobat download action inserts a link, but this doesn’t
automatically get treated as text and included in the styling
process. If it comes before any text in a new paragraph then it
will come before the things that identify and style that text. The
same happens if it sits at the end of a paragraph; it is placed
outside the text tags, and isn’t styled.
If you make sure there’s at least a space character either side of
the action item, and make sure you select all that text when applying
the text style, that will ensure that the code the action creates
falls within the bounds of the styling instructions. And because
browsers disregard both multiple spaces and spaces at the beginning
of lines, the space before the action item will be ignored by the
browser as it is rendering the layout; it won’t affect the layout.
It is a simple thing once you know!
One thing I did notice in the code is that the text style appears thus with ‘f-lp’ at the end, not sure if that is normal
This f-lp style is something that Freeway adds to counter the normal “space-after” of the paragraph it’s applied to. It programmatically adds this second classname to the last paragraph in any given container (div/td). Without it, you would notice (if your design included a background color or border on that container) that your text would never reach the bottom, but would remain whatever distance you set as the inter-paragraph spacing away from that container.
You can have as many classes as you like applied to any object on the page, and as long as you aren’t trying to create padding-bottom or margin-bottom within your mainbodytext2 style you should be fine.
That clears that up - mmm I think. Anyway still to resolve the problem I’m encountering.
This is the link: http://www.larkphoto.co.uk/test.html
You might note that on the main site I’ve used the download action and though I’m stuck with an underline at least its the same color
Well of course I figured it out myself eventually.
For those in the future who might have a similar problem:
I had a set of page navigation .navlink, .navhover etc set for the main page navigation. Wrong. I eventually resolved the situation by changing the main navigation to use the ‘link styles’ action and used the page links style (.navlink etc) for the pdf download only instead.