Zoofu Posted September 3, 2009 Share Posted September 3, 2009 http://zoofu.000space.com/border.png - The entire border. <?php session_start(); include "./globals.php"; ?> <html> <head> <title>Zoofu | Catalog</title> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="./style.css"> </head> <body> <center> <div id="holder"> <div id="userInfo"> <?php if($_SESSION['uid']){ $sql = "SELECT * FROM `users` WHERE `id`='".$_SESSION['uid']."'"; $res = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($res) == 0){ session_destroy(); echo "<div align=\"right\"><a href=\"./login.php\">Login</a> | <a href=\"./register.php\">Register</a></div>\n"; }else { $row = mysql_fetch_assoc($res); echo "<div align=\"right\">Logged in as: <a href=\"./index.php?act=profile&id=".$row['id']."\">".$row['username']."</a> | <a href=\"./inventory.php\">My Inventory</a> | <a href=\"./logout.php\">Logout?</a></div>\n"; echo "<div align=\"right\">Lv. ".$row['level']." | EXP ( ".$row['exp']." / 1000 ) | <img src=\"./token.png\"> Tokens ( ".$row['tokens']." )</div>\n"; if($row['admin'] == '1'){ echo "<a href=\"./admin.php\">| Admin Panel</a>\n"; } } }else { echo "<div align=\"right\"><a href=\"./login.php\">Login</a> | <a href=\"./register.php\">Register</a></div>\n"; } echo "<tr><td><center><img src=\"./logo.png\"></center></td></tr>\n"; echo "<table border=\"0\" cellspacing=\"3\" cellpadding=\"3\" width=\"85%\">\n"; echo "<tr><td><center><b><a href=\"./games.php\">| Games |</a></b></td></center><td><center><b><a href=\"./catalog.php\">| Catalog |</a></b></td></center><td><center><b><a href=\"./browse.php\">| Browse |</a></b></center></td><td><center><b><a href=\"./index.php\">| Forum |</a></b></center></td><td><center><b><a href=\"./help.php\">| Help |</a></b></center></td></tr>\n"; echo "</table>\n"; ?> <?php $sql10 = "SELECT * FROM `forum_replies`"; $res10 = mysql_query($sql10) or die(mysql_error()); $num1 = mysql_num_rows($res10); $sql11 = "SELECT * FROM `forum_topics`"; $res11 = mysql_query($sql11) or die(mysql_error()); $num2 = mysql_num_rows($res11); $sql12 = "SELECT * FROM `users`"; $res12 = mysql_query($sql12) or die(mysql_error()); $num3 = mysql_num_rows($res12); $total = $num1 + $num2; echo "<br>\n"; echo "<center><table border=\"1\" cellspacing=\"3\" cellpadding=\"3\" width=\"80%\">\n"; echo "<tr align=\"center\"><td class=\"forum_header\">Zoofu contains <b>".$total."</b> posts made by <b>".$num3."</b> users!</a></td></tr>\n"; echo "</table></center>\n"; ?> </div> </div> </center> </body> </html> The page. #holder { width:90%; background-color:#EEE; border-image:url('border.png') 0 4 0 4 stretch stretch; color:#000; font-family:Tahoma; padding:10px; text-align:center; } - This bit here... Why is there just simply... No border? http://zoofu.000space.com/catalog.php - The test page I'm trying to do it on. Link to comment https://forums.phpfreaks.com/topic/172961-border-not-showing-up/ Share on other sites More sharing options...
FrankA Posted September 3, 2009 Share Posted September 3, 2009 Hey, I'm not sure what you're border is supposed to look like, but I saw black borders on the main box you have and one on the logo image inside, then around where it says the "Zoofu contains..." bit there's a border that's white inside with 1px gray lines surrounding it (sorry, I can't think of how to describe that). I think some browsers might be pretty specific though with denoting the type of measurement of what you want your border to be, i.e. try changing this: border-image:url('border.png') 0 4 0 4 stretch stretch; to: border-image:url('border.png') 0 4px 0 4px stretch stretch; Also make sure the path to your border.png is correct, I know it's a given, but I've had to tell myself that many times in the past -Frank Link to comment https://forums.phpfreaks.com/topic/172961-border-not-showing-up/#findComment-912078 Share on other sites More sharing options...
CG_dude Posted September 3, 2009 Share Posted September 3, 2009 I'm not sure as I have never used the " \ " when defining the borders, but you shouldn't need them. Link to comment https://forums.phpfreaks.com/topic/172961-border-not-showing-up/#findComment-912079 Share on other sites More sharing options...
kirisutegomen Posted September 4, 2009 Share Posted September 4, 2009 this happened to me all i had to do was add border-style:solid; to my css does that work for you? Link to comment https://forums.phpfreaks.com/topic/172961-border-not-showing-up/#findComment-912097 Share on other sites More sharing options...
haku Posted September 5, 2009 Share Posted September 5, 2009 border-image is a CSS3 property. We are still using CSS2 in 2009. Gonna have to wait a couple years for that one cross-browser. At the moment it only works in Safari, and maybe FF3. http://www.css3.info/preview/border-image/ Link to comment https://forums.phpfreaks.com/topic/172961-border-not-showing-up/#findComment-913014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.