logo-radria.gif
   
Blog Download Documentation Forum Tasks Home
Blog Download Documentation Forum Tasks Home
barside-right.gif
barside-left.gif
logo-sql.gif





Center Pages with PageBuilder

Posted on Saturday 14 February 2009

Most of the modern design today center the content of the page in the web browser.

By default the PageBuilder pages are design align to the left. I will explain how you can display you pages centered once published or on preview.

For this you need to edit the default header file. The file is in your project at:
includes/header.inc.php

You will need an FTP access, or the file manager package installed to edit it.

in that page replace the body tag with the following:

<?php if ($_GET[’inpagebuilder’] == “yes”) { ?>
<body bgcolor=”<?php echo $background_color;?>” background=”<?php echo $background_image; ?>>
<?php } else { ?>
<body bgcolor=”<?php echo $background_color;?>” background=”<?php echo $background_image; ?>” style=”text-align: center;”>
<div style=”margin: 0 auto; width: 800px; text-align: left; position: relative;”>
<?php } ?>

Thats all, now you continue creating the pages left align in the PageBuilder and click preview to see it centered.


No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI