Jump to content

Table Pictures have Space between the Rows in FF!


anybody99

Recommended Posts

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

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? :P

 

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">

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.

<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;' />

<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.....

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.