473,830 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with adyacent img's

I'm trying to put two adjacent img tags inside a table cell

example:

<td><img class="imgclass " src=""/><img class="imgclass " src="" /></td>

but i'm getting always a line break between images

the following is the css code for imgclass:

..imgclass {
border: 0;
margin: 0;
height: 15px;
}

i've tried with float:left, display: inline, etc. but cannot get rid
of the break line between images... (mozilla, ie6)

help please!
Aug 9 '06 #1
2 1304
Sorbitol <in****@vtr.net scripsit:
I'm trying to put two adjacent img tags inside a table cell
Why? Using an image processing program to combine the images into one would
appear to be the obvious solution.
example:

<td><img class="imgclass " src=""/><img class="imgclass " src="" /></td>
Really? This invalid sketchy markup does not help much. How about a URL.

I suspect that you actually have a space between the elements.
.imgclass {
border: 0;
margin: 0;
height: 15px;
}
Why? Images normally have a default of 0 for border and margin, so why would
you say that explicitly? (If a browser has a different setting in the user
style sheet, maybe there's a _reason_ to that.) Setting the height to 15px
looks pointless: you just risk getting a poor scaling if the actual image
height is not 15 pixels.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Aug 9 '06 #2

Sorbitol wrote:
I'm trying to put two adjacent img tags inside a table cell
No URL. No comments.

Aug 9 '06 #3

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

Similar topics

0
1259
by: krunkelgarten | last post by:
Hi there, I've developed a site for a group of companies. And they wanted their adresses etc. on the site. The site is http://fmf.centrumweertpromotion.nl/ When you click on the 2nd thing from the left in the menu, and then click 'fashion' you get a view of all the involved companies. To keep it easy to update, i made a folder for every company with their logo and a info.php-file with their address etc. in it. The BIG PROBLEM is that i...
3
533
by: Mikael Hellström | last post by:
Hi all... I hava a problem . This pice of code (menu) works well with ie but don't work with netscape 6.2 .. why? Please tell me how i can get this to work. My site have the adress http://www.hyresbytet.se Regards Mikael (Newbie) <html> <head>
1
5638
by: delerious | last post by:
Could someone please take a look at this page: http://home.comcast.net/~delerious1/index11.html The set of links on the left should not have any whitespace between them, and the set of links on the right should have one pixel of whitespace between them. That's how it looks in IE and Opera. But in Mozilla, a few of the links on the left have whitespace between them, and some of the links on the right don't have whitespace between them...
2
2034
by: sjanie | last post by:
The error code is: Microsoft JScript compilation error '800a03ec' Expected ';' /bicc.nl/Connections/BICCwebsite.asp, line 2 Set Conn = Server.CreateObject("ADODB.Connection") ----^
1
5126
by: sudhaoncyberworld | last post by:
where is the problem in below code, i am not getting o/p img=document.createElement('IMG'); img.src='Images\\add.gif'; img.style.cursor='hand'; //evnt=document.createAttribute("onmouseover"); //evnt.nodeValue="test();"; //img.addEventListener("onmouseover","test();",false); img.attachEvent("onmouseover","test();"); td.appendChild(img);
2
2332
by: Chris H | last post by:
I am having a problem with pagination, basically the problem is happening in the "PREV / NUMBERS / NEXT" links, it appears as if the reason is becasue the increment and decrement operators aren't functioning or the $page variable isnt working in that part of the code... Below is the link to the working but broken page.. as well as the main part of my code... Hopefully someone can explain why the operators arent working or maybe see what i...
5
3703
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
1
1446
by: kchaitanya | last post by:
I have created a master page. When I am adding this master page to .aspx files which are in the root directory, it is working fine. When , I am adding master page to .aspx files which are in sub folders , I am getting some problem. Initially, images are not displayed. If I am using runat="server", they are dispalyed. But , I am not getting some text and background color at the place of those text messages. Please check in the below code....
6
10275
by: babaidebnath | last post by:
Hello all, I am presently having a problem with printing in C#. The problem is my customer provided me a pre printed paper and I need to print value into some specific positions. But problem is C# for its generic autofit to page nature dont let me doing this. Every time it is decreasing whole page's size and also altering my value position into some specific ratio. Can anyone tell me how can I come over that problem. This is my code
0
9793
marktang
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...
0
10777
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10493
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7747
isladogs
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...
0
6951
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();...
0
5617
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...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4416
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
2
3960
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.