HTML - Provide floating box for setting apart quotations from other text
General
Spaces Where Used | all SWEHB spaces |
---|---|
How used | provide floating box for setting apart quotations from other text |
Visibility | only Sys Admins in the Macro Browser |
Title | floatbox |
Description | |
Categories | |
Icon URL | |
Documentation URL | |
Definition | Rendered |
Output Format | |
Status | Active in all spaces |
An attempt was made to fix this macro under the name "floatboxnew". The code from that is now used in "floatbox".
Rendering
From SWE-087, tab 3. Note the parenthesis and grey area in box:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed quis tortor. Donec non ipsum. Mauris condimentum, odio nec porta tristique, ante neque malesuada massa, in dignissim eros velit at tellus. Donec et risus in ligula eleifend consectetur. Donec volutpat eleifend augue. Integer gravida sodales leo. Nunc vehicula neque ac erat. Vivamus non nisl. Fusce ac magna. Suspendisse euismod libero eget mauris.
Current Code
## Macro title: FLOATBOXNEW
## Macro has a body: Y
## Body processing: Rendered
## Output: Selected output option
##
## Developed by: Fred Haigh
## Date created: 6/2/2017
## Installed by: Fred Haigh
## @param width:title=Width of box|type=string|required=true|desc=Default is 350px
#if($paramwidth) #set($boxwidth=$paramwidth) #else #set($boxwidth="350px") #end
#if($boxwidth=="full") #set($boxtext=" ") #else #set($boxtext="float:right;width:$boxwidth") #end
<div style="$boxtext">
<div style="background: #f5f5f5;border-left: 2px solid #00B;border-right: 2px solid #00B; margin: 5px; padding: 10px 15px 10px 15px; -moz-border-radius: 30px; border-radius: 30px; border-top: 3px dotted #EEc; border-bottom: 3px dotted #EEc;">$body</div></div>