TheJoey Posted September 14, 2009 Share Posted September 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/ Share on other sites More sharing options...
Bricktop Posted September 14, 2009 Share Posted September 14, 2009 Hi TheJoey, You haven't closed your PHP code. Change it to read: <?php include('process.php'); ?> Hope this helps. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918327 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 sorry just forgot to add it even when i do this it shows up its just shows up in the wrong place. and stuffs up all my style from css. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918329 Share on other sites More sharing options...
Bricktop Posted September 14, 2009 Share Posted September 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918332 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 no its just code which process a form. i just want the style sheet from my html code to take place is that possible? Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918333 Share on other sites More sharing options...
Bricktop Posted September 14, 2009 Share Posted September 14, 2009 Yes, it should do it by default. Are you able to post all of your code? Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918342 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918350 Share on other sites More sharing options...
Adam Posted September 14, 2009 Share Posted September 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918354 Share on other sites More sharing options...
TheJoey Posted September 14, 2009 Author Share Posted September 14, 2009 thank you so much. so stupid of me thought i closed the table off. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/174204-solved-css-trouble-with-my-php/#findComment-918357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.