English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi

My main script is index2.php written in pure php a pagination page as follows,
problem :
include("menu.html"); which is a menu on the left hand side of my page, pushes the $row->body data down the page.

All other positining and .css works for this database data,

How can i put $row->body data by the right hand side of this menu and in the middle of the page.

I have tried using tags in php using print and escaping " with \ still no luck.

index2.php:

include("head.html");

print "

";

include("db_config.php");

print "";
print "
";

print "
";
print $row->body;
print "... ";
print "
";
print "
";

thanks in advance

Tovia

2007-10-30 03:10:20 · 2 answers · asked by jam 5 in Computers & Internet Programming & Design

2 answers

You don't say what's in menu.html. Is it an entire web page, with a section etc? If so, you shouldn't be including it in another page. You just need the HTML for the menu itself.

2007-10-30 05:14:12 · answer #1 · answered by Daniel R 6 · 0 0

Try using float: left on your menu page

Basically your layout should be like this:



Content here



Also if your content pushes down, try using valign="top" on your content div.

You also might want to check this very good tutorial on how to make excellent 2 and 3 column layout: http://www.maxdesign.com.au/presentation/page_layouts/

2007-10-30 10:21:07 · answer #2 · answered by pbu 2 · 0 0

fedest.com, questions and answers