Jump to content

Skarabeol

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by Skarabeol

  1. I have another problem now:) <div id="aspect-top"> <div class="title"><h1>My title Here!</h1></div> <div class="title_author">Wicked hacker</div> </div> #aspect-top { position:absolute; top:230px; left:200px; width: 900px; height: 60px; background: url(page_top2.png) no-repeat left top; z-index:-1; } .title { margin:20px auto; width: 860px; color:#752626 } .title h1{ line-height:2em; color:#752626; text-align:center; } .title_author { position:relative; right:25px; top:20px; color:#ff0000; } Image i think i should use z-index but it doesn`t work:)
  2. This is the page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- Please keep the author:) Template made by WickedHacker --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>My f****** Page</title> <link href="style.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="header"></div> <div id="navigation"> <div id="nav-menu"> <ul> <li><a href="/home"><span>Home</span></a></li> <li><a href="#"><span>Forum</span></a></li> <li><a href="#"><span>Updates</span></a></li> </ul> </div> </div> <div id="aspect-top"></div> <div id="aspect-content"> <div id="content"> aaa<br />aaa<br />aaa<br />aaa<br />aaa<br />aaa<br />aaa<br /> </div> </div> </body> </html> This si the part of css where i need help #aspect-content { position:absolute; top:505px; left:200px; width: 900px; background: url(page.png) repeat-y left top; } #content { position:relative; top:30px; left:30px; width: 810px; } When i put someting in <div id="content"> the <div id="aspect-content">`s widht don`t grow up once with <div id="content"> Here is an image:) http://imageshack.us/photo/my-images/807/unled4fp.png/
  3. Thank you very much!You helped me a lot:)
  4. Here is posts.php <?php include('includes/functions.php'); ?> <html> <head> <title>Basic CMS- Admin Area</title> </head> <body> <a href="logout.php">Logout</a> <a href="posts.php">Manage Posts</a> <table cellspacing="0" cellpadding="10"> <thead> <tr> <td>Post Title</td> <td>Author</td> <td>Category</td> <td>Action</td> </tr> </thead> <tbody> <?php getPosts(); ?> </tbody> </table> </body> </html> Here is a part of functions.php <?php include('includes/connect.php'); function getPosts() { $query = mysql_query("SELECT * FROM posts") or die(mysql_error()); if(mysql_num_rows($query) == 0) { echo "<tr><td colspan=\"3\">No Posts Where found</td></tr>"; } else { while($post = mysql_fetch_assoc($query)) { echo "<tr><td>" . $post['Title'] . "</td><td>" . $post['Author'] . "</td><td>" . $post['category_id'] . "</td><td><a href=\"delete.php?id=" . $post['ID'] . "\">Delete</a><br /><a href=\"edit.php?id=" . $post['ID'] . "\">Edit</a></td></tr>"; } } } Table posts ID Title Author Content category_id Table categories IDNameDescription When i access posts.php it shows me that: I want to display me there the name of category wich has the ID = with category_id from posts table
×
×
  • 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.