Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Table Column Default Align Center?, This is an easy question...
gunbound
post 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.
Go to the top of the page
 
+Quote Post
no9t9
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Which Media Burner Is Better?(40)
  2. Increment A Mysql Column(7)
  3. How Can I Create A Gui Using C++(5)
  4. A Pretty Good Easy Way To Make Some Money(21)
  5. What Is Mysql's Default Root Password?(9)
  6. Ie Table Width In A Div Tag(5)
  7. Adding Rows & Columns In Html Table Using Javascript(1)
  8. Default Hosting Package Plan Upgrade!(48)
  9. Invisionfree Skinning Tutorial * Skill Level: Easy(7)
  10. Learn Html Quick And Easy(14)
  11. I Need Recipes That Are Easy And Very Quick To Make(25)
  12. Real Paying Site(10)
  13. Registry Easy(6)
  14. Adsense Earning Is Just Made Easy(3)
  15. Remembering Your Dreams(10)
  1. Post Your Favorite Easy To Make Meal.(16)
  2. Open Any Unknown File Type With Notepad(1)
  3. Easy Cure For Depression?(10)
  4. How Do I Change The Default Windows Font Size?(5)
  5. Make Money Using Chacha(12)
  6. Very Disappointed With Data Center Migration(9)
  7. Easy Realmedia Producer(0)
  8. Problem Getting Text To Align With Different Resolutions(4)
  9. Cannot Connect With Ftp [resolved](3)
  10. Easy Plants For Brown Thumbs(1)
  11. Easy Spicy Ranch Dip Recipe(4)
  12. Cash Lagoon(5)
  13. Firefox And Ie: Table Layouts Look Different In Us!(4)


 



- Lo-Fi Version Time is now: 13th October 2008 - 10:50 PM