Better handling of rounded corners using CSS.
This commit is contained in:
parent
a0d42811ba
commit
b0e097738d
1 changed files with 2 additions and 26 deletions
|
@ -654,37 +654,13 @@ void HTML::end_html_table(OUTPUT_STREAM) {
|
|||
=
|
||||
void HTML::open_coloured_box(OUTPUT_STREAM, text_stream *classname, int rounding) {
|
||||
HTML_OPEN_WITH("table",
|
||||
"width=\"100%%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" "
|
||||
"width=\"100%%\" cellpadding=\"6\" cellspacing=\"0\" border=\"0\" "
|
||||
"class=\"%S\"", classname);
|
||||
HTML_OPEN("tr");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
if (rounding & ROUND_BOX_TOP) HTML::box_corner(OUT, classname, I"tl");
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN("td");
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
if (rounding & ROUND_BOX_TOP) HTML::box_corner(OUT, classname, I"tr");
|
||||
HTML_CLOSE("td");
|
||||
HTML_CLOSE("tr");
|
||||
HTML_OPEN("tr");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN("td");
|
||||
}
|
||||
|
||||
void HTML::close_coloured_box(OUTPUT_STREAM, text_stream *classname, int rounding) {
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
HTML_CLOSE("td");
|
||||
HTML_CLOSE("tr");
|
||||
HTML_OPEN("tr");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
if (rounding & ROUND_BOX_BOTTOM) HTML::box_corner(OUT, classname, I"bl");
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN("td");
|
||||
HTML_CLOSE("td");
|
||||
HTML_OPEN_WITH("td", "width=\"%d\"", CORNER_SIZE);
|
||||
if (rounding & ROUND_BOX_BOTTOM) HTML::box_corner(OUT, classname, I"br");
|
||||
HTML_CLOSE("td");
|
||||
HTML_CLOSE("tr");
|
||||
HTML::end_html_table(OUT);
|
||||
|
|
Loading…
Reference in a new issue