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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Share on other sites

<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
Share on other sites

<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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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