Solved

Removing space between images

Posted on 2002-04-28
5
178 Views
Last Modified: 2010-04-09
I have several images that I want to show up one after the other from left to right with the right edge of the previous one touching the left edge of the next one.

When I list them like this:

<img src="whatever">
<img src="whatever">
<img src="whatever">

... I get a little bit of space between them but when I list them like this:

<img src="whatever"><img src="whatever"><img src="whatever">

... the space goes away.

The problem is that I have them surrounded by link tags with a bunch of attributes and if I put the tags end to end (the second way) I have to scroll way to the right and it is hard to read the code.

Is there any way to be able to list each image tag on a separate line and still get the actual images to line up perfectly from left to right?

Any help would be greatly appreciated.
0
Comment
Question by:moshecristel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6975214
No.  What you are seeing is the white space created by the line feed.  If they are not on the same line the browser will put in the space just as if you had typed in a space.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6975219
You might be able to solve it with a table, but then you just create some new problems.  It is nice if the code is pretty, but the user sees what is on the page, not the code;  except for us HTML geeks, and we know why it is written that way.

Cd&
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 6975383
<img
src="whatever"><img
src="whatever"><img
src="whatever">
0
 

Author Comment

by:moshecristel
ID: 6975708
It's not the ideal way to have to do it but it's a good idea.  Thanks.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6976479
as Cd& said, it's code for HTML geeks ;-)
Now you know why to trash FrontP..., Dream.. etc.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question