ngreenwood6 Posted December 15, 2008 Share Posted December 15, 2008 I am trying to create a forum space like the one on this site. I have this code: index.html: <!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>Untitled Document</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <table id="forum"> <tr> <td colspan="3" style="background:repeat url(background.jpg);">Forum</td> </tr> <tr> <td id="forum">Nick</td> <td id="forum">Help with mysql Database!</td> <td id="forum">09/12/2008</td> </tr> </table> </body> </html> style.css: #forum { border:1px thin solid #000000; } but that is not what I want. I want a nice thin border around the outside of the whole thing and then just a line around the td's inside the second tr. It's hard to explain but what it looks like when you are looking at all the posts with the dividers. Quote Link to comment Share on other sites More sharing options...
Mchl Posted December 15, 2008 Share Posted December 15, 2008 1. This site does not use tables for layout and neither should you. 2. You can't have multiple elements with same id Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted December 15, 2008 Author Share Posted December 15, 2008 I know that they don't use tables they use divs but I was just using it as a reference. I am just using this as a test so it doesn't really much matter if I use the same or not. I am just trying to figure out how to do it. Quote Link to comment Share on other sites More sharing options...
Mchl Posted December 15, 2008 Share Posted December 15, 2008 Well then. My point #2 is still valid. Use class instead of id. And that's about as much as I can help with CSS Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted December 15, 2008 Author Share Posted December 15, 2008 If anyone has a better method or can show me another way to do it I am open to suggestions just want to figure out how to make my pages look neat. Quote Link to comment 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.