Jump to content


Photo

aligning columns


  • Please log in to reply
4 replies to this topic

#1 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 26 June 2006 - 11:00 PM

I am knew to php. Before now my site was html only. I am now switching to php and am running into some problems.

I am not sure if css would be the best way to do what I want or not. I am not expecting anyone to write the code for me. I would rather be pointed in the right direction, so that I will learn. Here is a link to a page that will explain my problem better [a href=\"http://www.owpt.biz/test/index.php\" target=\"_blank\"]OWPT[/a]. Any help would be greatly appericated.



Thanks


Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 26 June 2006 - 11:37 PM

Can you please be a bit more specific as to what you're asking?
PHP Ninja

#3 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 26 June 2006 - 11:56 PM

[!--quoteo(post=388269:date=Jun 26 2006, 06:37 PM:name=Caesar)--][div class=\'quotetop\']QUOTE(Caesar @ Jun 26 2006, 06:37 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Can you please be a bit more specific as to what you're asking?
[/quote]

When I split my site into different columns (i.e header, footer, right column, left column and center) I get a big mess. Big mess being, The header is centered the way I want but the left column and center are in the center of the page (on top of each other) and the footer and right column are way off. I have an example and the problem explained better as well as copies of my php code at the site.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 27 June 2006 - 12:04 AM

Good grief - what awful code.

This is nothing to do with php and everything to do with html. height is not a valid attribute for table. height is not a valid attribute for tr or td either. Table elements take their height from the amount of their content. The mis-alignment is caused by using the align attribute for the tables incorrectly. You have pseudo-style attributes for some table elements and those are meaningless as you have coded them.

Best bet - code better and clean up the html. Oh, and you can't put the BODY tag at the end of the page.
Legend has it that reading the manual never killed anyone.
My site

#5 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 June 2006 - 12:10 AM

my little example

Alter width and height

<html>
<head>
<title>  </title>
<body>

// table to put all tables in a squre.

<table border="4"  bordercolor="black" align="center" height="" width="">
<td>

// table for the header.

<table  border="4" bordercolor="black" align="center" height="" width="">
<td>
<?php include("header.php");?>
</td>
<table>

//table for the center.

<table border="4" bordercolor="black" align="center" height="" width="">
<td>
<?php include("center".php);?>
</td>
</table>

//table for the footer.

<table border="4" bordercolor="black" align="center" height="" width="">
<td>
<?php include("footer.php");?>
</td>
</table>

// this is to end the table for the whole tables.
</td>
</table>

</html>
</body>
</head>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users