ngreenwood6 Posted September 4, 2008 Share Posted September 4, 2008 Hello all, I know this is going to be an easy question, but for the life of me I cannot remember. I just want a simple little tiny line around the outside of my table and I cannot remember how to get it. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/122756-tables/ Share on other sites More sharing options...
tmbrown Posted September 4, 2008 Share Posted September 4, 2008 <table border="1"></table> or take the css approach <style type="text/css"> .tblborder{ border: thin solid; border-color: #000; } </style> <table class="tblborder"></table> Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633893 Share on other sites More sharing options...
ngreenwood6 Posted September 4, 2008 Author Share Posted September 4, 2008 I know how to do it with the border but it puts a big bulky line around the outside. I want something thin like the black line around the code portion of your post. Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633895 Share on other sites More sharing options...
tmbrown Posted September 4, 2008 Share Posted September 4, 2008 are you trying to do this personally or trying to get your code to show in the forum? show code on the forum: [ code ] Code Here [ /code ] Remove the spaces Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633899 Share on other sites More sharing options...
ngreenwood6 Posted September 4, 2008 Author Share Posted September 4, 2008 I am trying to do it personally. I want to create a login box with a small line around the outside of it. Thanks Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633904 Share on other sites More sharing options...
tmbrown Posted September 4, 2008 Share Posted September 4, 2008 use the css method. <style type="text/css"> .tblborder{ border: thin solid; border-color: #000; } </style> <table class="tblborder"></table> Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633906 Share on other sites More sharing options...
ngreenwood6 Posted September 4, 2008 Author Share Posted September 4, 2008 Thanks for the help. Is there any other method? Maybe something a little bit easier. Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633912 Share on other sites More sharing options...
tmbrown Posted September 4, 2008 Share Posted September 4, 2008 well i meand you can put the style tag right inside the table tags. <table style="border: thin solid;border-color: #000;"></table> Other than that, not, but the CSS method does give you more control over how the border looks. Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-633914 Share on other sites More sharing options...
TheFilmGod Posted September 4, 2008 Share Posted September 4, 2008 I have a simplier solution! <table style="border: 1px solid #000;"> ... content of the table goes here... </table> Link to comment https://forums.phpfreaks.com/topic/122756-tables/#findComment-634021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.