Jump to content


Photo

Text in div tags.


  • Please log in to reply
2 replies to this topic

#1 jenniferG

jenniferG
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 28 October 2006 - 03:37 PM

Why does the    text "Test" not shbow up in the browder  below the <div> tsags?

<html>

<head>
  <title></title>
</head>
<body>
<div style="background : #000000; color : #000000; padding : 4px; width : 950px; height : 150px; overflow : auto; "></div>
<div style="background : #ffffff; color : #ffffff; padding : 4px; width : 950px; height : 450px; overflow : auto; ">
<?php  include 'viewcontacts2.php' ?>
</div>
<div>Test</div>

</body>

</html>

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 28 October 2006 - 04:17 PM

Does it work without the PHP code?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 richei

richei
  • Members
  • PipPipPip
  • Advanced Member
  • 90 posts

Posted 09 November 2006 - 12:46 AM

you're include statement is wrong, should be <?php include('viewcontacts2.php'); ?>

and because you're text and background are the same color, so even if that include does work, you won't see it :)  change either the background color or the text color and it should work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users