Problem is - I don't understand how to create layouts like he done. I understand a bit of CSS:
body. {
background-color: gray;
border: 2px solid orange;
font-family: verdana;
}
I can use it in conjunction with <div> tags, but I don't understand how to create full alignments. Take this site for an example, the way it displays all the user generated information in a table like form, printing towards the bottom of the page. After, if it reaches a certain length, it uses pagenition to prevent a stretched page.
I don't understand how I manually create layouts such as the ones you see on this site and other sites.
I also have another annoyance that's bugging me; how can I get php to display certain layouts if a user is logged in for instance, or to not display that layout and to display another if the user isn't logged in.
I tried this...
if($a == 2)
{
echo "
<div id="test'> Sorry, you must be logged in to do that. Please login: <a href="login.php"> login </a></div>
";
}
else
{
echo "
<div id="logged_in"> Thank you for logging in '$user' </div>
";
}
I need some help on designing layouts in conjunction with PHP
This post has been edited by livelonger87: 22 June 2008 - 07:13 AM

New Topic/Question
Reply




MultiQuote






|