InfoBox taglib ver. 1.2


    Custom JSP tag. This taglib lets you define text boxes in your JSP pages. It is yet another solution for your design - a standalone way for creating a customized area with the rounded corners. For example:
 


<%@ taglib uri="taglib.tld" prefix="i" %>

<i:InfoBox title="Coldtags suite" size="240">
The largest collection of JSP custom taglibs and Ajax controls
<br>See more <a href="http://www.servletsuite.com/jsp.htm" target="_blank">here</a>
</i:InfoBox>

and you will get this:

Coldtags suite
The largest collection of JSP custom taglibs and Ajax controls
See more here

As you see the box here contains two areas: title and body. HTML code generated by this tag depends on the predefined graphical files. See the downloading area below. By default tag uses the following CSS settings for boxes in 240 pixels (you can use them as a starting point for your own customization):

Box: margin:0 0 4px 0;padding:0;width:240px;background:#FFCC00 url(infobox_b240.gif) no-repeat bottom left;

Title: margin:0 0 2px;padding:2px 0 0 6px;border-bottom:2px solid #fff;color:#000000;text-align:left;font-size:100%;text-transform:uppercase;font-weight:bold;background:#66ff33 url(infobox_t240.gif) no-repeat top left;

Body: margin:0;padding:0 8px 6px 8px;text-align:left;font-size:80%;line-height:1.2em;color:#000000;text-align:justify;

For default settings you can set customized backgrounds. And of course you can provide your own CSS classes.

Tags are:

InfoBox

Body tag. Lets you define a text box in your application. Parameters are:

1) id Optional parameter. Describes a CSS/DHTML ID for the area.
2) title Describes a title (caption) for your box.
3) size Optional parameter. Describes a width (in pixels) for your box. Possible values are 120 or 240.
Default value is 240.
4) className Optional parameter. Describes a CSS class for the area
5) titleClass Optional parameter. Describes a CSS class for the title
6) bodyClass Optional parameter. Describes a CSS class for the body
7) background Optional parameter. Describes a background color for the default CSS settings. Default value is #FFCC00.
8) titleBackground Optional parameter. Describes a background color for the default CSS settings in your title Default value is #66FF33.

for downloading:

Library: infoboxtag.jar    Description: taglib.tld  
Border files: top_120  top_240  bottom_120  bottom_240

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: