Jump to content

Recommended Posts

im having trouble displaying my php & html code effeciently

i want the code to show in the css but its stuffing everything up.

 

my code is pretty much along these lines

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Layout 2</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />

</head>
<body>
<div id="wrapper">
  <div id="header">
    <div id="nav">
      <ul>
        <li><a href="link.php">link</a></li>
      </ul>
    </div>
  </div>
  <div id="content">
    <div id="right">
      <h1>blah blah</h1>
      <p>
<?php include('process.php');
  </p>
</div>
    <div class="welcome">
      <p>
  Login box
  </p>
      <small><a href="">Forgotten password</a> | <a href="">Register</a></small> </div>
    <br class="clear">  </div>
  <div id="footer"> <img src="toooter.gif"></div>
</div>
</body>
</html>

 

where

<?php include('process.php');

is were i want my form from my php page to show up.

Link to comment
https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/
Share on other sites

OK, does process.php have a stylesheet defined it it?  If so, you're effectively applying two stylesheets to the same page which is going to cause strange things to happen.

 

Cobine both stylesheets into one, or make sure both stylesheets are not apllying styles to the same HTML elements.

Perhaps it's just the mark-up not correct. Take a look at:

 

echo '<tr><td><input type="submit" name="SubmitForm" value="Send"></td></tr>';

 

Previously you've been spanning cols across 2, this doesn't. Also you're not closing the table.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.