Skip to content

Commit

Permalink
ipfire theme: Use div align for center
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alfh committed Feb 26, 2014
1 parent 69776cc commit 480f354
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion html/html/themes/ipfire/include/functions.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 480f354

Please sign in to comment.