DeadDingo Posted October 29, 2006 Posted October 29, 2006 In the main index page, I have added some text and pictures (instead of where the welcome guest message used to be) Is there a way to add a border around that bit to make it fit in with the rest of my site? Can I add it into the /includes/languages/english/index.php file in the define('TEXT_MAIN', ' blah blah blah' area? I already have a couple of tables in that area and when I try to add a new table at the start (ending at the end) to give it a border, the page breaks. Can anyone give any help. Cheers
Guest Posted October 29, 2006 Posted October 29, 2006 Just change in index.php the code from <td class="main"><?php echo TEXT_MAIN; ?></td> to <td class="main"> <table border="1" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table> </td>
DeadDingo Posted October 29, 2006 Author Posted October 29, 2006 Thanks for the very quick reply Stu. I added the bordercolor="#cdae42" to make it the correct colour. But now it is thicker than the rest of the borders. How can I make it the same 1px thickness? Thanks again for the help
Guest Posted October 29, 2006 Posted October 29, 2006 I would change the coding suggested above from <td class="main"> <table border="1" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table> </td> to <td> <table class="table_border" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table> </td> then in stylesheet.css add something like this: TABLE.table_border { border: 1px; border-style: solid; border-color: #b6b7cb; border-spacing: 1px; } See if that works.
DeadDingo Posted October 29, 2006 Author Posted October 29, 2006 That worked a treat. Thanks everso much.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.