mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
ipfire theme: Use div align for center
Revert change to make openbox produce validating html, when center alignment for box is wanted. I have not been able to find css solution for properly aligning the div horisontally.
This commit is contained in:
@@ -238,7 +238,12 @@ sub openbox {
|
||||
$align = $_[1];
|
||||
$caption = $_[2];
|
||||
|
||||
print "<div class='post' style='text-align:$align;'>\n";
|
||||
if($align eq 'center') {
|
||||
print "<div class='post' align='center'>\n"
|
||||
}
|
||||
else {
|
||||
print "<div class='post'>\n";
|
||||
}
|
||||
|
||||
if ($caption) {
|
||||
print "<h2>$caption</h2>\n";
|
||||
|
||||
Reference in New Issue
Block a user