anybody99 Posted April 28, 2007 Share Posted April 28, 2007 When trying to build a website template in PHP, in tables. The website is build with pictures, then in FF[FireFox] the Rows has space between them[and so the pictures have space too]. In IE7 it works fine, this is happening only between the Rows. Help Plz. -Robert Link to comment https://forums.phpfreaks.com/topic/49070-table-pictures-have-space-between-the-rows-in-ff/ Share on other sites More sharing options...
ignace Posted April 28, 2007 Share Posted April 28, 2007 Your posting this in the wrong section, it has to come under HTML Help! Just so you know! But hey therefor they invented admins right? between your head tags: <style type="text/css"> <!-- -- more on css can be found at: -- http://www.blooberry.com/indexdot/css/index.html //--> table { border-collapse: collapse; } img { margin: 0; padding: 0; } </style> then if that does not work, try, IE already has this set to 0, dunno about FF: <table border="0"> Link to comment https://forums.phpfreaks.com/topic/49070-table-pictures-have-space-between-the-rows-in-ff/#findComment-240430 Share on other sites More sharing options...
anybody99 Posted April 28, 2007 Author Share Posted April 28, 2007 It didn't help, i think if it would have something to do with a border then there would be space between the coloums too and not just between the rows. <table style="border-collapse: collapse;" table border="0" img { margin: 0; padding: 0; } bordercolor="#111111" cellpadding="0" cellspacing="0" width="760"> Nether the less i enter what u said into the style sheet file and also in the head section. Link to comment https://forums.phpfreaks.com/topic/49070-table-pictures-have-space-between-the-rows-in-ff/#findComment-240444 Share on other sites More sharing options...
ignace Posted April 28, 2007 Share Posted April 28, 2007 <table style="border-collapse: collapse;" table border="0" img { margin: 0; padding: 0; } bordercolor="#111111" cellpadding="0" cellspacing="0" width="760"> that is a wrong implementation of what i suggested, it should be (if you want it to be inline with your element): <table border='0' style='border-collapse: collapse;' bordercolor=... and for every image of you: <img style='margin: 0; padding: 0;' /> Link to comment https://forums.phpfreaks.com/topic/49070-table-pictures-have-space-between-the-rows-in-ff/#findComment-240487 Share on other sites More sharing options...
anybody99 Posted April 28, 2007 Author Share Posted April 28, 2007 <div align="center"> <table border='0' style='border-collapse: collapse;' bordercolor="#111111" cellpadding="0" cellspacing="0" width="760"> <tbody><tr> <td colspan="4"> <img style="margin: 0; padding: 0;" src="img/top1.gif" style='margin: 0; padding: 0;' alt="" height="62" width="252" /></td> Same..... Link to comment https://forums.phpfreaks.com/topic/49070-table-pictures-have-space-between-the-rows-in-ff/#findComment-240509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.