Jump to content
xisto Community
Sign in to follow this  
gunbound

Table Column Default Align Center? This is an easy question...

Recommended Posts

I'm just starting to use PHP, and I started with the

<?php include("page.html"); ?>

It worked, but it made the alignment to the center where I had originally left it as default (left align).

Why? And how can I change this easily without having to edit all my pages.

Thanks.

Share this post


Link to post
Share on other sites

the reason it is doing this is not because you are using the PHP include. You probably have "CENTER" defined in your style sheets or tables somewhere. I am pretty sure because "center" is not the default. alignment left is the default.You can check your CSS file or your html pages for the "center" definition. You can just use a text editor and search for "center".One way to "fix" this is to put this around your include statement<p style="text-align:left"><?php include("page.html") ?></p>but this will not always work because if you have any </p> in your page.html, it will default back to center

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.