Jump to content

Archived

This topic is now archived and is closed to further replies.

jenniferG

Text in div tags.

Recommended Posts

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>

Share this post


Link to post
Share on other sites
Does it work without the PHP code?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.