|
|
|
|
![]() ![]() |
Apr 10 2005, 09:38 PM
Post
#1
|
|
|
PhilosopherX ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 106 Joined: 5-February 05 From: Planet X Member No.: 3,613 |
I'm just starting to use PHP, and I started with the
CODE <?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. |
|
|
|
Apr 10 2005, 09:50 PM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 773 Joined: 4-November 04 Member No.: 2,118 |
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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 10:50 PM |