Connecting Tech Pros Worldwide Forums | Help | Site Map

div problem

oll3i's Avatar
Site Addict
 
Join Date: Mar 2007
Posts: 563
#1: Dec 9 '07
echo "<div id=\"join\">";
echo "<div id=\"main\">";
echo "<div id=\"contents\">";
echo "<div id=\"left_strip\">";


echo "<div id=\"content_table\">";
content here
echo "</div>";

echo "<div id=\"pagination\">";
$show->pagination();
echo "</div>";

echo "<div id=\"content_table\">";
$show->display_search_top_tr();
$show->display_candidates();
$show->display_table_down_search();
echo "</div>";
echo "</div>"; //left strip


echo "<div id=\"right_strip\" align=\"center\">";
echo "<div id=\"right_strip_inside\" align=\"center\">";
echo "<div id=\"info_queries\">";
echo "<div id=\"number_records\">";
echo "Records: $show->num_records";
echo "</div>";
echo "</div>";

echo "<div id=\"date_time\">";
echo date ('D:')."<br>";
echo date ('d M Y')."<br>";
echo date ('g:i a');
echo "</div>";

include ('../include/users_online.php');
echo "</div>";
echo "</div>";

include('../include/footer.inc');


footer

<?
echo "<div id=\"footer\">";
echo " &copy;2007";
echo "</div>";

echo "</div>";
echo "</div>";
echo "</div>";
echo "</div>";
echo "</body>";
echo "</html>";


Looks like IE doesnt see the divs It ends left_strip div after first content_table div
and my 2 content_table divs should be in left_content strip
it doesnt see pagination div neither

my css is

#left_strip {
padding:0 0.6em 0 0.6em; /*top right bottom left*/
width:815px;
float:left;
}


#content_table {
position:relative;
top:15px;
}

and what's weird is that i have the same code in a different file and everything works there the way i wont


Thank You

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,948
#2: Dec 9 '07

re: div problem


Use code tags please =/

I can't be bothered to try and make sense of that - it takes too long.

Not getting at you, but if you're a guru you'd be expected to know the posting rules.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,572
#3: Dec 9 '07

re: div problem


You are asking us to wade through all the script stuff and cut/paste everything together for you to figure it out. That's not going to happen.

I do question the need for all those <div>s
oll3i's Avatar
Site Addict
 
Join Date: Mar 2007
Posts: 563
#4: Dec 10 '07

re: div problem


sorry I completely forgot about the tags
thank You
Reply