473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Images Still have a gap! ??

Hi,
i'm trying to get a webpage together with some images.
Now those images are alle setup in a table.

My code is something like:

<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top" height="75">
<td width="75">
<img src="bbbb.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
<td width="75">
<img src="cccc.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
</tr>
<tr valign="top" height="75">
<td width="75">
<img src="aaaa.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
<td width="75">
<img src="dddd.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
</tr>
</table>
css-file:
body, .image, td, tr {
margin:0px;
padding:0px;
}

I use doctype strict. The problem is, that there is always a small gap
underneath each image.
Jul 21 '05 #1
1 1690
Oliver schrieb:
Hi,
i'm trying to get a webpage together with some images.
Now those images are alle setup in a table.

My code is something like:

<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top" height="75">
<td width="75">
<img src="bbbb.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
<td width="75">
<img src="cccc.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
</tr>
<tr valign="top" height="75">
<td width="75">
<img src="aaaa.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
<td width="75">
<img src="dddd.jpg" alt="" border="0" width="75" height="75"
class="image" />
</td>
</tr>
</table>
css-file:
body, .image, td, tr {
margin:0px;
padding:0px;
}

I use doctype strict. The problem is, that there is always a small gap
underneath each image.

Forget it i found finaly a solution in an older thread.
display:block;
did the trick.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark247 | last post by:
Hi, When transforming an XSLT to HTML I get a very annnoying white spac gap of about 2px under each image. This is particularly annoying as am creating a vertical navigation menu made up of images...
13
by: DM | last post by:
If I put three images next to each other (each within an anchor tag) they all line up horizontally as expected with no space between them. I.e., they're sitting flush up against each other. ...
5
by: Apple Sauce | last post by:
I'm building a site that requires images to be placed into a table dynamically - the name of each image is drawn from a database reference. (e.g database entry is "images/image1.jpg" etc). The...
9
by: Daz | last post by:
Hello hello! I'm trying to finish off putting my design into HTML and I've come across a problem that I can't get my head around. I've got divs floating in two columns, but I'm having problems...
5
by: Wolff | last post by:
Hi All, I'm coding a page in which I would like a .js menu to overlay an image. The problem is this: putting the menu between two images gets it to appear where I want it, but it also creates a...
3
by: daveo1001 | last post by:
I've sliced up a nice little nav bar that kind of makes a C shape around my text on the page. There is a top right image, at top left, a left, a bottom left and a bottom right. They are all in their...
8
by: zeeeej | last post by:
Hi, I have a couple of images in my page header that I want to sit directly on top of each other. However, I'm getting a small gap between them when I view the page in Firefox and Safari. It...
3
by: Dave | last post by:
I have an ASP 3.0 website on which the images are displaying intermittently. In other words, when I request a page, the image is blank. There is no missing image place marker (rectangle with a...
7
by: Keith Hughitt | last post by:
Hi all, I am having trouble preloading images in a javascript application, and was wondering if anyone had any suggestions. Basically I have a bunch of images stored in a database as BLOBs. At...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.