Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-16-2005, 02:19 PM PHP Layout Setup
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
Ive got the Separate pages done for the layout. And I have the php include scripts on the index page were they are supposed to go. But when I view it. Its uneven. Here is a link to my layout. See if you guys can help me figure this out. THx

Layout Preview

BoardTng is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2005, 02:25 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
could you post an image of how it was supposed to look?
if not give all details what where is wrong....

are you referring to the space between the images?
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 02:43 PM
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
This is what It's supposed to look like. The top left and right are the ones im using the includes on.

Preview Layout
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 02:53 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
i am way too tired to solve that now ...

but i do know you have spaces between tags, like this:
<td> <img ....
remove them all so they look like this:
<td><img .... ></td>

also you have a lot of extra &nbsp;'s ....
doing all that aligned them a little better ... but i still had a very thin line between them and the black area was well aligned with the rest but not on the right but in the same place.

more than that i cannot help you with tonight ... sorry.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 03:17 PM
celticbrue's Avatar
Extreme Talker

Posts: 175
Location: Wiltshire, England
Trades: 0
Hi,

I think you have some problems with the way you are including the "includes" as I counted 4 sets of <body> tags and 4 sets of <head> tags, as well as seeing html tags after the final closing </body> tag.

Omu's comments regarding the way you use the <img> tags in conjunction with the <td> tags is very relevant and will certainly help, but until you resolve the include issue, it will not be easy to sort this problem for good.

It would be helpful if you could post the code for Test1.php as well as all the includes so we will have a better idea where things might be going wrong.

Regards

Ian
__________________
Found this useful? - HIT MY TALKUPATION!


Please login or register to view this content. Registration is FREE
celticbrue is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 08:50 PM
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
Heres the script to the index.php with the includes:

Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>I N I T I A L G R A P H I C S</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="Images/BG1.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table width="768" height="678" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="41" rowspan="2" align="right" valign="top">
<?php include('Navigation.php'); ?>
</td>
<td height="18" colspan="2" align="center" valign="top">
<?php include('Header.php'); ?>
<div align="center"></div>
<div align="center"></div></td>
</tr>
<tr>
<td width="461" height="625" background="Images/BG2.JPG"></td>
<td width="165" align="right" valign="top"><p align="right">
<?php include('RNavigation.php'); ?>
</p></td>
</tr>
</table>
</div>
</body>
</html>
Itd be more helpful if i can talk to somebody with aim or something. my sn is BoardTng

Layout Preview 2 (This is as close as I can get)

Last edited by BoardTng; 05-16-2005 at 09:13 PM..
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 09:34 PM
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
guessing nobody willing to help me out....weird you goto a place expect the people who know this stuff to help and get nothing.
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 09:40 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
Before you actually consider cussing us, think about is this a PHP or a HTML problem? PHP is simply a gateway, and it can only output data (unformatted, uncoloured, irrelavent). Now HTML, that's different, it makes everything look pretty, hence why it's a Markup Language. So when they're combined, it's pretty powerful.

So with this in mind, your problem has nothing to do with PHP, it isn't PHP that's making your images not match up, it's your HTML coding.

So now that you've slammed this forum, go and speak to the guys in the HTML, CSS, etc forum.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 09:50 PM
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
not slamming anybody and i didnt use any cussword, did i not? oh and btw its a mixture of php. Im new to it and Im just expecting the experts here. maybe yourself and others to join in and help someone out. There was a time and place youve need help before, I can assure.

Last edited by BoardTng; 05-16-2005 at 09:57 PM..
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 10:14 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
Sure, but i didn't wait less than an hour before i moaned. You did post at 1:50AM. You might have PHP involved in your problem, but i assure you it's HTML.

It looks like your problem lies in the table lay out, check this out. Your table width is 768 right? The TD width values you have in the table don't add up to 768.

This is just looking at the code you've posted. HTML code is a little annoying to look through, sorry. It looks to me like it's simply a table layout problem, and possibly having your image sizes wrong. That's what it's always been in the past with my layouts, just fiddle with sizes etc etc or post in the HMTL forum, someone might look through the whole code if you wait long enough.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 10:54 PM
celticbrue's Avatar
Extreme Talker

Posts: 175
Location: Wiltshire, England
Trades: 0
BoardTng,

If you can post the code for each of the includes (Header.php, Navigation.php and RNavigation.php) I will look at it as soon as I get a chance. I think there is a lot of credence in what leavethisplace says about it being a HTML mark up problem, but I also think there may problems with your php includes due to the number of head and body tags appearing in the finished page. Without the code for the includes I cannot check this.

I think you'll find most people here are pretty helpful, but sometimes one has to be a little patient. I am more than willing to help you, but I hold down a full time job and run two (small) businesses in the hope that I can one day give up the full time job. This means that I don't have a huge amount of spare time. I am writing this from work where I have very limited Internet access and absolutely no access to any IM service. You also have to consider this is a world-wide environment that means people are often not in the same time-zone and can be as much as twelve hours ahead or behind you. Most people where I am (UK) will be in bed at the time you posted the code - I'm not because I'm working a night shift!

Regards

Ian
__________________
Found this useful? - HIT MY TALKUPATION!


Please login or register to view this content. Registration is FREE
celticbrue is offline
Reply With Quote
View Public Profile
 
Old 05-16-2005, 11:31 PM
BoardTng's Avatar
Novice Talker

Posts: 14
Trades: 0
Header
Quote:
<table width="598" border="0" cellpadding="0" cellspacing="0">
<tr>

<td colspan="2"> <img src="Images/Header_02.jpg" width="321" height="119" alt=""></td>

<td colspan="2"> <img src="Images/Header_03.jpg" width="277" height="119" alt=""></td>
</tr>
<tr>

<td height="19" colspan="3" background="Images/Header_06.jpg">&nbsp; </td>

<td width="4" background="images/Header_07.jpg"> <img src="Images/Header_07.jpg" alt="" width="4" height="17" align="top"></td>
</tr>
<tr>

<td width="20" rowspan="2"> <img src="Images/Header_09.jpg" width="20" height="24" alt=""></td>

<td colspan="2"> <img src="Images/Header_10.jpg" width="574" height="13" alt=""></td>
<td background="Images/Header_11.jpg">
<img src="Images/Header_11.jpg" width="4" height="13" alt=""></td>
</tr>
<tr>

<td colspan="3"> <img src="Images/Header_12.jpg" width="578" height="11" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="20" height="1" alt=""></td>
<td width="301">
<img src="images/spacer.gif" width="301" height="1" alt=""></td>
<td width="273">
<img src="images/spacer.gif" width="273" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="4" height="1" alt=""></td>
</tr>
</table>

Navigation
Quote:
<table width="171" border="0" cellpadding="0" cellspacing="0" background="39657D">
<tr>

<td colspan="4"> <img src="Images/Navigation_01.jpg" width="170" height="119" alt=""></td>
<td width="10">
<img src="images/spacer.gif" width="1" height="119" alt=""></td>
</tr>
<tr>

<td height="108" colspan="3" rowspan="5" background="Images/Navigation_04.jpg">
</td>

<td width="23"> <img src="Images/Navigation_05.jpg" width="23" height="17" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt=""></td>
</tr>
<tr>

<td> <img src="Images/Navigation_07.jpg" width="23" height="24" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="24" alt=""></td>
</tr>
<tr>

<td> <img src="Images/Navigation_11.jpg" width="23" height="27" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="27" alt=""></td>
</tr>
<tr>

<td> <img src="Images/Navigation_15.jpg" width="23" height="15" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="15" alt=""></td>
</tr>
<tr>

<td rowspan="7" background="Images/Navigation_15.jpg"></td>
<td>
<img src="images/spacer.gif" width="1" height="25" alt=""></td>
</tr>
<tr>

<td colspan="2"> <img src="Images/Navigation_17.jpg" width="130" height="39" alt=""></td>

<td width="17"> <img src="Images/Navigation_18.jpg" alt="" width="17" height="39"></td>
<td>
<img src="images/spacer.gif" width="1" height="39" alt=""></td>
</tr>
<tr>

<td width="16" height="330" rowspan="3" background="Images/Navigation_19.jpg">
</td>
<td width="114" height="330" rowspan="3" background="Images/Navigation_20.jpg">
</td>

<td> <img src="Images/Navigation_21.jpg" alt="" width="17" height="22"></td>
<td>
<img src="images/spacer.gif" width="1" height="22" alt=""></td>
</tr>
<tr>

<td background="Images/Navigation_22.jpg"></td>
<td>
<img src="images/spacer.gif" width="1" height="286" alt=""></td>
</tr>
<tr>

<td> <img src="Images/Navigation_23.jpg" alt="" width="17" height="22"></td>
<td>
<img src="images/spacer.gif" width="1" height="22" alt=""></td>
</tr>
<tr>

<td colspan="2"> <img src="Images/Navigation_24.jpg" width="130" height="43" alt=""></td>

<td> <img src="Images/Navigation_25.jpg" alt="" width="17" height="43"></td>
<td>
<img src="images/spacer.gif" width="1" height="43" alt=""></td>
</tr>
<tr>

<td height="146" colspan="3" background="Images/Navigation_26.jpg"></td>
<td>
<img src="images/spacer.gif" width="1" height="146" alt=""></td>
</tr>
</table>

RNavigation
Quote:
<table width="137" border="0" cellpadding="0" cellspacing="0">
<tr>

<td> <img src="Images/RNavigation_15.jpg" width="137" height="10" alt=""></td>
</tr>
<tr>

<td width="137" height="615" background="Images/RNavigation_16.jpg">&nbsp; </td>
</tr>
</table>
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-17-2005, 01:22 PM
celticbrue's Avatar
Extreme Talker

Posts: 175
Location: Wiltshire, England
Trades: 0
Hi,

Just to let you know I haven't forgotten about this.

I have spent about 2 hours looking at the code and the images used. Your layout is very complex with tables and nested tables, so it is making it pretty difficult to sort out when you factor in the fact that not everything is in one place due to the includes.

I am currently in the process of stitching together some of the images to try and simplfy the layout and therefore make it much easier to comprehend and add content to when you get to that stage.

Unfortunately, I have to go and see a client now and then go on to work, so it is going to be about this time tomorrow before I am able to make any more headway with this.

Regards

Ian
__________________
Found this useful? - HIT MY TALKUPATION!


Please login or register to view this content. Registration is FREE
celticbrue is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Layout Setup
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.09106 seconds with 12 queries