// design by Kriti Shankar Senapati sS htitledSectionWithDiv(S title, O contents, O... params) { S backgroundColor = "#fff"; // TODO: grab from params S labelStyle = "width: auto; float: top; position: relative; top: -.6em; left:15px; background-color: " + backgroundColor; optPar S innerDivStyle; params = dropParam innerDivStyle(params); ret div( htag label(b(" " + title + " "), style := labelStyle) + div(contents, style := joinNemptiesWithSemicolon(innerDivStyle, "padding-left: 15px"), class := "sectionContents"), params_stylePlus("border: 2px solid", params); }