Display an HTML Web Resource in a Form with No Border:
When you add an HTML web resource to an entity form, a border will be displayed even when you do not check the Display Border check box of the formatting tab of the Web Resource Properties
 dialog box. To prevent a border from being displayed, set the style 
properties of the body element of the HTML document. You must also not 
include any DOCTYPE information. The following HTML will cause the HTML 
web resource contents to display without a border.
By default, many HTML editors include DOCTYPE information 
in the contents of the HTML. The following HTML with the same body style
 applied will still appear with a border.
<html> <head> <title>No Border Web Resource</title> </head> <body style="border-width: 0px; padding-left: 0px; padding-top: 0px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px"> <p> This Web resource will display with no border</p> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web Resource with Border</title> </head> <body style="border-width: 0px; padding-left: 0px; padding-top: 0px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px;"> <p> Style applied but border still appears.</p> </body> </html>
No comments:
Post a Comment