-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Apache OfBiz Cookbook
You may add CSS styling markup (div and class directives) directly to widget XML statements by using the HTML markup tags as described.
CSS styling markup can be added simply by following these steps:
1. Within any widgets element, add one or more XML statements with HTML and CSS markup.
2. Close all HTML markup elements with appropriate end tags.
3. Save and close the file.
HTML CSS directives placed within the widgets element of a screen definition are translated into HTML based on conversions built-in to the OFBiz screen handler and Screen widget screen generation tool. Several common HTML elements may be specified directly within the Screen widget definition or on a screenlet's element in this way.
To instruct the Screen widget to create a web page with the following HTML and CSS markup:
<div id="idA" class="classA"> <h1>This is an image </h1> <img src="/images/img.png" height=40 width=40 />...
Change the font size
Change margin width
Change background colour