Jump to content

[SOLVED] CSS trouble with my PHP


TheJoey

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.

Archived

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

×
×
  • 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.