Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Customise Visual format
jstephan
Hi,
Currently whenever we apply a custom style to the contents on the visual formatter, it uses
tag to apply the style. Like :
Test Text
Instead of SPAN, how to specify DIV tags?
Test Text
And is it possible to use SPAN and DIV both on different set of styles in the same visual formatter?
Thanks
John
Find more posts tagged with
Comments
jstephan
I Found!
Changed the wrapstylewithdiv property to TRUE in the visual format config. That will do the magic.
But not sure how to apply DIV and SPAN based on the styles. I think, its not possible!??
DougD
You can choose either DIV -or- SPAN for generic classes.
To have the DIV tag appear like a SPAN (that is, inline instead of blocking), then apply the CSS style {display:inline}.
To have a class only apply to DIV, define the selector as div.classname. Similarly for SPAN, span.classname. However, I believe the DIV or SPAN must already exist in the content. For a generic class (one without a tagname in the selector), either a DIV or SPAN will be created to wrap the selected content.