Hello experts
IE 7.0.5730.11
Opera 9.27
Firefox 2.0.0.14
This problem only occurs in Opera and Firefox (amazing, IE does
something right, or maybe not)
Anyway, the problem is that when I put an image in a <divor a <td>
both Opera and Firefox always put 2px padding under the image
I can move the image down by doing this
style='position :relative; bottom: -2px;'
But then the gap is at the top.
If I'm using a table then of course I have cellpadding=0 and cellspacing=0
I'm sure this never used to be the case, it's driving me nuts
is it me, or is the world turning differently these days.
Any ideas how to get rid of this annoying gap
TIA
Idaho 3 2287
On 2008-05-01, DuncanIdaho <Du************ **@googlemail.c omwrote:
Hello experts
IE 7.0.5730.11
Opera 9.27
Firefox 2.0.0.14
This problem only occurs in Opera and Firefox (amazing, IE does
something right, or maybe not)
Not this time.
Anyway, the problem is that when I put an image in a <divor a <td>
both Opera and Firefox always put 2px padding under the image
I can move the image down by doing this
style='position :relative; bottom: -2px;'
Don't fix the symptom.
But then the gap is at the top.
If I'm using a table then of course I have cellpadding=0 and cellspacing=0
I'm sure this never used to be the case, it's driving me nuts
is it me, or is the world turning differently these days.
Any ideas how to get rid of this annoying gap
Set display: block or vertical-align: bottom on the img.
The gap is supposed to be there because the img is baseline aligned by
default, so it sits on the baseline like a letter, with a bit of space
below it for descenders.
Ben C wrote:
On 2008-05-01, DuncanIdaho <Du************ **@googlemail.c omwrote:
>Hello experts
IE 7.0.5730.11 Opera 9.27 Firefox 2.0.0.14
This problem only occurs in Opera and Firefox (amazing, IE does something right, or maybe not)
Not this time.
>Anyway, the problem is that when I put an image in a <divor a <td> both Opera and Firefox always put 2px padding under the image
....
Set display: block or vertical-align: bottom on the img.
The gap is supposed to be there because the img is baseline aligned by
default, so it sits on the baseline like a letter, with a bit of space
below it for descenders.
OK display:block works, thanks
Shame, I don't really like dissing IE it's so ... 'yesterday'.
Thought I'd found something it did right ... ah well, the world still
turns the same I guess.
Thanks again
Idaho
In article <sl************ ********@bowser .marioworld>,
Ben C <sp******@spam. eggswrote:
On 2008-05-01, DuncanIdaho <Du************ **@googlemail.c omwrote:
Hello experts
IE 7.0.5730.11
Opera 9.27
Firefox 2.0.0.14
This problem only occurs in Opera and Firefox (amazing, IE does
something right, or maybe not)
And Safari and more... though it is not really a "problem" as Ben
indicates, it is what is supposed to happen...
Not this time.
Anyway, the problem is that when I put an image in a <divor a <td>
both Opera and Firefox always put 2px padding under the image
I can move the image down by doing this
style='position :relative; bottom: -2px;'
Don't fix the symptom.
it's driving me nuts
Any ideas how to get rid of this annoying gap
Set display: block or vertical-align: bottom on the img.
The gap is supposed to be there because the img is baseline aligned by
default, so it sits on the baseline like a letter, with a bit of space
below it for descenders.
Yes. If OP wants text to go on simply on the same line, the vertical
align route sounds best. But hard to say without a url from the op.
Anyway, why am I chorusing on here? To supply an illustration:
<http://tinyurl.com/2x3t8f>
--
dorayme This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Dee |
last post by:
A very very basic UTF-8 question that's driving me nuts:
If I have this in the beginning of my Python script in Linux:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
should I - or should I not - be able to use non-ASCII characters
in strings and in Tk GUI button labels and GUI window titles and in
raw_input data without Python returning wrong case in manipulated
|
by: Martin |
last post by:
Due to the the large numbers of MS trained programmers unemployed we are
looking at using MS Development environments.
VB programmers are currently 10 a penny.
However I find C a bit more logical as I come from a Clipper background.
Current;y .NET seems to be the latest fashion, so what is it about and
should we use it please?
|
by: googlegroups |
last post by:
We have just built a new webserver for development and would like to
run an asp.net site on it. The files that make up the site are on a
different server.
Both servers are windows 2003 servers and both have been fully patched.
When we try to setup the website in IIS6 we have to use a UNC to locate
the home directory. We use a domain account (domain\iisdev) to access
the files accross the network. If we try to map a drive and use the...
|
by: funcSter |
last post by:
Hey, got a prob which is driving me nuts!
I'm trying to resize the resolution of an image as well as it's pyhsical byte size.
I've got:
byte bytImage = null;
System.Drawing.Image imgImage = null;
System.Drawing.Image imgNewImage = null;
|
by: mitsura |
last post by:
Hi,
I need to read a simle XML file. For this I use the SAX parser. So far
so good.
The XML file consist out of number of "Service" object with each object
a set of attributes.
I read through the XML file and for each "<Service>" entry I create a
new service object.
When I am in the "<Service>" part of the XML file and I encounter
| |
by: Laphan |
last post by:
Hi
The god that is Martin Honnen gave me a great tip to DOM/JS some HTML data
into an iframe, but I need to make sure that the iframe is ready to take it
before I paste it in.
At the moment, if I don't specifically click into the iFrame (it is in
design mode) then when I paste the HTML it attaches itself to the main
document rather than in the iframe 'body'.
|
by: eric dexter |
last post by:
I need to take text from one file and then save it to a different file. I also need to return any comment
The def should have variables for the file that should be read in, the file it should be read out to and the instrument number to take. thanks in advance (re has been driving me nuts I can paste what I have if it helps.) The text I am trying to remove will look something like this
instr 1 ;String pad
there will be a bunch of...
|
by: soeter04 |
last post by:
Hey there,
I'm having trouble with an (at first sight) easy layout:
Basic layout: 3 rows:
- top bar (fixed height)
- middle frame (max height between bars)
- bottom bar (fixed height)
In the middle frame, there should be a 4 column layout:
|
by: kaotik78 |
last post by:
I've racked my head on this all day long. I've been using php for 3 days now and this is the first hang up I've had and it's driving me nuts, but I can't pull myself away from trying to fix the problem. I need help or a push in the right direction.
I have a contact form and a validate form. I'll keep this short and sweet, if it can work for one field, I can figure it out for the rest.
I have session_start() at the top of both form and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |