Just to be clear, the two lines actually added were:
Include the dash before "moz".
For IE9/Opera 10+:
For IE8 and lower: Too bad. They don't support border radius.
For more information, see http://www.css3.info/preview/rounded-border/
Typo in border-radius
Hi - that has helped but now further problems have arisen...
How do I add an img tag to the css so that Robohelp will pick it up? All I want is an img style that adds a grey, round edged border to my images and it seems to be incredibly tricky!
At the moment I am using a p.img class in the stylesheet but that is unreliable depending on the size of the image...
Can anyone help on this?
1 person found this helpful
You can simply style the image itself. For instance, if you use:
you give all images a border radius of 15 pixels. I'd say that you simply take the border styles from your paragraph definition and put them in an image style.
If you only want to style certain images, create an image class, add the styling for that class and apply the class to the images in HTML mode:
<img src="myimg.png" class="border" />
/* Border style here */
You see, this is what I figured but I just can't get it to work. I add this to my .css file:
Go back into Robohelp, insert an image, nothing happens. No border at all. Any thoughts?
No surprise that RoboHelp doesn't show it. Try generating your output and see if your styles are correct in your output.
Also, I doubt that your curved borders will show if you create HTML Help output.
William has figured out the issue via email, I'll post it here in case it comes up again for anyone...
As for the borders of the images, RoboHelp automatically disables the borders of images you insert into your topics. You can override this setting in your css with the !important declaration. Try replacing your current style with:
border: 7px solid #adadad !important ;
The !important declaration tells the browser that this style is more important than any inline styling or user defined styling. This allows your style sheet to overwrite those RoboHelp inline styles.
Thanks for all the help,