Libraryless. Click here for Pure Java version (2914L/18K).
// design by Kriti Shankar Senapati sS htitledSection(S title, O contents, O... params) { S backgroundColor = "#fff"; // TODO: grab from params S labelStyle = "width: auto; float: top; position: relative; top: -15px; left:15px; background-color: " + backgroundColor + "; font-size: 30px"; ret div( htag label(b(" " + title + " "), style := labelStyle) + p(contents, style := "padding-left: 15px"), params_stylePlus("border: 2px solid", params); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030187 | 
| Snippet name: | htitledSection - create titled section in HTML (like jSection) [not <section> tag] | 
| Eternal ID of this version: | #1030187/7 | 
| Text MD5: | f4344312db09c179de4e9a29b7f72767 | 
| Transpilation MD5: | d036ebdba429c16deaa47c6316982b02 | 
| Author: | stefan | 
| Category: | javax / html | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2020-11-13 10:46:30 | 
| Source code size: | 488 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 431 / 571 | 
| Version history: | 6 change(s) | 
| Referenced in: | [show references] |