span class in topnav

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

span class in topnav

Post by ajturnersurrey »

I have been successfully including a span class around text to make buttons appear in the flow of user instructions in a pdf
pdf_button_right.png
However, in topnav my button moves over to the left edge and overlays other text:
topnav_button_wrong.png
I am not aware of anything that should make the span text float left in topnav!
Am I wrong to be using a span class for this?
You do not have the required permissions to view the files attached to this post.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: span class in topnav

Post by ChoccieMuffin »

Take a look at the mediums you are using for the PDF and Topnav outputs and compare them side by side, you might spot where the difference lies.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Re: span class in topnav

Post by ajturnersurrey »

I can't see a problem in the stylesheet

Here are the styles side by side for topnav and pdf
button_css.png
I made the topnav version just a simple font colour and background, to see whether defining a border was causing an issue, but it seems that even that makes the span.button float left...
You do not have the required permissions to view the files attached to this post.
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: span class in topnav

Post by NorthEast »

The class "button" is already used elsewhere in the skin/stylesheets generated by Flare.

Call the class something different to "button" and you'll be ok.
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Re: span class in topnav

Post by ajturnersurrey »

Woo-hoo! It works now.

Thank you Dave.
So pleased I asked here - I never would have spotted that in a month of Sundays.
Post Reply