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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo
XXXXXXXXooooooooo
XXXXXXXXooooooooo
XXXXXXXXLLLLLLLLL
XXXXXXXXLLLLLLLLL
XXXXXXXXLLLLLLLLL
(Each letter, "X", "o", and "L" represents a different image.)
There should be no space at all between the images.
I have tried several different ways to get that to work using, <div>s, the float
attribute, and tables. I've set up CSS rules that specify margin: 0, padding: 0
and border: none. I've made sure there are no extraneous spaces in the XHTML
code itself. I've also made sure the document validates as XHTML 1.0 strict.
No matter what I do, the arrangement of images renders with space between them.
In Mozilla 1.7.3 for the PC there's a gap between the two right images and in IE
6 there is a gap between all the images.
How can I get these images to not have any space between them?
Any help would be greatly appreciated.
Code follows.
================================================== ==================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MTC -- <!--#include virtual="include/sectionTitle.htm" --></title>
<!--#include virtual="/include/headElements.htm" -->
</head>
<body>
<p class="invisible"><a href="#features">Skip navigation links</a></p>
<p class="invisible"><a id="top" name="top"></a></p>
<div id="headlineleft">
<a href="audio/audio.htm" class="unmarked"><img src=
"../images/headline_audio.jpg" alt="Streaming Audio - Listen to MTC committee
meetings" /></a>
</div>
<div>
<a href="press_releases/" class="unmarked" id="headlinetopright"><img src=
"../images/headline_news2.jpg" alt="MTC press releases" /></a>
<br />
<a href="headlines.htm" class="unmarked" id="headlinebottomright"><img src=
"../images/headline_news3.jpg" alt="Transportation Headlines" /></a>
</div>
<p><img src="../images/bar_features.gif" alt="Features" /></p>
</body>
</html>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
a#headlinebottomright{
margin: 0;
padding: 0;
border: none;
}
div#headlineleft{
margin: 0;
padding: 0;
border: none;
float: left;
}
a#headlinetopright{
margin: 0;
padding: 0;
border: none;
}
a,
a:link,
a:active,
a:visited {
border-bottom: solid 1px;
text-decoration: none;
}
a:hover {
border-bottom: none;
text-decoration: none;
}
body {
padding: 4px;
}
div#navbardiv {
width: 132px;
padding-bottom: 12px;
background-color: #E3E7EE;
}
div#navbardiv a {
border: none;
background: none;
text-decoration: none;
}
div#navbardiv p {
width: 120px;
margin: 0 4px 2px 4px;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
div#navbardiv ul{
margin: 0;
padding: 0;
}
div#navbardiv ul li{
padding: 0 4px 0 6px;
margin: 0;
display: list-item;
list-style-position: inside;
list-style-type: disc;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 14px;
}
form#search input {
margin: 0;
padding: 1px;
border: solid 1px #000000;
background-color: #CCCCCC;
color: #EC2F00;
font-size: 10px;
}
h1{
font-size: large;
}
h1, h2, h3, h4, h5, h6, p {
margin: 12px 0 0 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
h2{
font-size: medium;
}
h3{
font-size: small;
}
h4{
padding: 2px 4px 2px 4px;
background-color: #6B8EBD;
color: #FFFFFF;
font-size: x-small;
text-transform: uppercase;
}
h5{
padding: 2px 4px 2px 4px;
background-color: #BDBDBD;
color: #FFFFFF;
font-size: x-small;
text-transform: uppercase;
}
h6{
font-size: small;
}
hr {
margin: 0;
margin-top: 8px;
margin-bottom: 8px;
padding: 0;
border: none;
border-top: solid 1px #000000;
}
img {
margin: 0;
padding: 0;
border: none;
}
li{
margin: 8px 0 8px 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
p {
font-size: small;
}
p.invisible {
height: 0;
width: 0;
display: none;
color: #FFFFFF;
position: absolute;
overflow: hidden;
}
table {
border-collapse: collapse;
}
table#innercontent{
margin: 6px 0 0 0;
padding: 0;
border: none;
border-collapse: collapse;
}
table#innercontent td{
vertical-align: top;
}
table#main {
background-color: #FFFFFF;
}
table#main td {
vertical-align: top; /* border: solid 1px #cc0000; */
}
table#main td#footer {
margin: 0;
padding: 12px;
border-top: solid 1px #000066;
text-align: center;
}
table#main td#footer p {
margin: 0;
margin-top: 6px;
margin-bottom: 6px;
padding: 0;
color: #000066;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
}
table#main td#maincontent {
padding-left: 16px;
padding-bottom: 20px;
}
table#main td#topbanner {
padding-bottom: 6px;
}
table#main td#topbanner a,
div#headlines a{
border: none;
background: none;
text-decoration: none;
}
table#main td#topbanner img#logo {
margin-right: 12px;
}
td.leftcol{
padding: 0 6px 0 0;
}
td.leftcol p,
td.rightcol p{
}
td.leftcol,
td.rightcol{
width: 221px;
}
td.rightcol{
padding: 0 0 0 6px;
}
a.unmarked{
border: none;
background:transparent;
text-decoration: none;
} 13 6084
In article <41*********************@news.cablerocket.com>, DM
<elektrophyte-yahoo> says... 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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL
There should be no space at all between the images.
Set line-height
Never send that much code directly. URL is better.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
DM wrote: 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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL
(Each letter, "X", "o", and "L" represents a different image.) http://tw.ecritters.biz/html_examples/threeimages/
Leif K-Brooks wrote: DM wrote:
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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL
(Each letter, "X", "o", and "L" represents a different image.) http://tw.ecritters.biz/html_examples/threeimages/
Thanks for the reply. I appreciate the help. Your example doesn't include the
anchor tags which were present in my original post, but I was still able to get
it to work following your example.
I'm still not sure why space was being added. Even now, it's still being added
in IE 5 for the PC, but I'm willing to allow that.
dm
DM wrote: Leif K-Brooks wrote:
DM wrote:
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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL
(Each letter, "X", "o", and "L" represents a different image.) http://tw.ecritters.biz/html_examples/threeimages/
Thanks for the reply. I appreciate the help. Your example doesn't include the anchor tags which were present in my original post, but I was still able to get it to work following your example.
I'm still not sure why space was being added. Even now, it's still being added in IE 5 for the PC, but I'm willing to allow that.
dm
Maybe you should delete the line breaks:
<img src="image1.jpeg" alt="" id="image1"><img src="image2.jpeg"
alt=""><img src="image3.jpeg" alt="">
I know its ugly, but it solve my problem last time.
--
-----------------------------------------
Visit my site! http://solid.bounceme.net
-----------------------------------------
StarQuake wrote: DM wrote:
Leif K-Brooks wrote:
DM wrote:
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.
However, in my design I need them to be laid out like this:
XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXooooooooo XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL XXXXXXXXLLLLLLLLL
(Each letter, "X", "o", and "L" represents a different image.)
http://tw.ecritters.biz/html_examples/threeimages/ Thanks for the reply. I appreciate the help. Your example doesn't include the anchor tags which were present in my original post, but I was still able to get it to work following your example.
I'm still not sure why space was being added. Even now, it's still being added in IE 5 for the PC, but I'm willing to allow that.
dm
Maybe you should delete the line breaks:
<img src="image1.jpeg" alt="" id="image1"><img src="image2.jpeg" alt=""><img src="image3.jpeg" alt="">
I know its ugly, but it solve my problem last time.
this is exactly right.. I had the same problem a few weeks ago, and was
tearing up my hair over it, until I realized that putting tags right
next to each other, no line breaks, no spaces, nothing between them,
solves this problem.. hope this helps.. good luck..
Frances
JRS: In article <MP************************@news.individual.net> , dated
Thu, 14 Oct 2004 00:07:46, seen in news:comp.infosystems. www.authoring.h
tml, Lauri Raittila <la***@raittila.cjb.net> posted : Never send that much code directly. URL is better.
It was 4500 bytes, reasonably compressible (ZIPs to 1500 bytes); with a
modem less than about 5 years old, it should take under a second to
download.
For those of us who use off-line newsreaders, it is much more convenient
to have code of up to about that size in-line in News, rather than to
have to access it on the Web at our next dial-up.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
In article <X$**************@merlyn.demon.co.uk>, sp**@merlyn.demon.co.uk
says... JRS: In article <MP************************@news.individual.net> , dated Thu, 14 Oct 2004 00:07:46, seen in news:comp.infosystems.www.authoring.h tml, Lauri Raittila <la***@raittila.cjb.net> posted :
Never send that much code directly. URL is better.
And even better would be less code.
Your example could have been 10 lines.
It was 4500 bytes, reasonably compressible (ZIPs to 1500 bytes); with a modem less than about 5 years old, it should take under a second to download.
Who cares, it is too long to render in brains - so I would need to copy
it to my computer - takes 5 seconds for Opera, but lots more for other
browsers.
And, do you really think I and all others had
.../images/headline_news3.jpg handy?
Now I looked your code, and extra white space might be reason just as
well.
For those of us who use off-line newsreaders, it is much more convenient to have code of up to about that size in-line in News, rather than to have to access it on the Web at our next dial-up.
Well, at least have the URL for us that do have cable... Next time, I
mean
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
On Thu, 14 Oct 2004 12:29:14 +0100, Dr John Stockton
<sp**@merlyn.demon.co.uk> wrote: JRS: In article <MP************************@news.individual.net> , dated Thu, 14 Oct 2004 00:07:46, seen in news:comp.infosystems.www.authoring.h tml, Lauri Raittila <la***@raittila.cjb.net> posted :
Never send that much code directly. URL is better.
It was 4500 bytes, reasonably compressible (ZIPs to 1500 bytes); with a modem less than about 5 years old, it should take under a second to download.
For those of us who use off-line newsreaders, it is much more convenient to have code of up to about that size in-line in News, rather than to have to access it on the Web at our next dial-up.
The reason for not sending that much code is less for dowmnoad time as it
is for comprehension. To deal with this amount of code, each person must
independently copy and paste to an HTML document and view it locally. I've
seen plenty of cases where the problem is caused by the unique situation
on the server, so that cannot be replicated.
It's easier to actually see what the code does by viewing it on a webpage.
I have no issues with small samples of code, but when you start to send
whole pages of code a URL is far superior for actually finding the
problems.
I appreciate that it's difficult when you work offline, but I think there
are compromises to be made. I'm on dialup because it's all I can currently
afford - you're on offline-newsgroup access because it's what is available
to you. I don't mind the occasional large download so long as you don't
mind the occasional need for an extra link-up to access content.
In article <op**************@news.individual.net>, ne*****@yahoo.com says...
[reasoning]
Nicely put, much better than my try... I appreciate that it's difficult when you work offline, but I think there are compromises to be made. I'm on dialup because it's all I can currently afford
Hm. I have used 2 free broadbands today (other included in rent, other,
wireless one only works near city center and university). Not that they
are very good, but cheap...
I have been thinking about getting dial up too, but I would need to buy
new phone, and can't afford that...
- you're on offline-newsgroup access because it's what is available to you. I don't mind the occasional large download so long as you don't mind the occasional need for an extra link-up to access content.
When I used worked offline, I sometimes posted code as a answer, but when
I asked myself, I always gave URL (too).
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
JRS: In article <op**************@news.individual.net>, dated Thu, 14
Oct 2004 22:10:07, seen in news:comp.infosystems. www.authoring.html,
Neal <ne*****@yahoo.com> posted : On Thu, 14 Oct 2004 12:29:14 +0100, Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
JRS: In article <MP************************@news.individual.net> , dated Thu, 14 Oct 2004 00:07:46, seen in news:comp.infosystems.www.authoring.h tml, Lauri Raittila <la***@raittila.cjb.net> posted :
Never send that much code directly. URL is better. It was 4500 bytes, reasonably compressible (ZIPs to 1500 bytes); with a modem less than about 5 years old, it should take under a second to download.
For those of us who use off-line newsreaders, it is much more convenient to have code of up to about that size in-line in News, rather than to have to access it on the Web at our next dial-up.
The reason for not sending that much code is less for dowmnoad time as it is for comprehension. To deal with this amount of code, each person must independently copy and paste to an HTML document and view it locally.
That takes, on a system such as mine, far less time than deciding to
investigate the situation would have taken. In fact, it is quite likely
that, if I were on-line, fetching a Web page would not be as quick.
I've seen plenty of cases where the problem is caused by the unique situation on the server, so that cannot be replicated.
It's easier to actually see what the code does by viewing it on a webpage. I have no issues with small samples of code, but when you start to send whole pages of code a URL is far superior for actually finding the problems.
That example was the equivalent in byte-count of one A4 page full of
typescript, though longer and thinner.
I appreciate that it's difficult when you work offline, but I think there are compromises to be made. I'm on dialup because it's all I can currently afford - you're on offline-newsgroup access because it's what is available to you. I don't mind the occasional large download so long as you don't mind the occasional need for an extra link-up to access content.
Certainly a URL should also be given if available.
Also : one can learn from reading code in News (as long as one looks out
for subsequent assertions of "Balderdash!"); what one learns may well be
nothing to do with the point at issue.
OT: test case for ISO weeknumber - 2003-12-29 = 2004W01-1 : errors seen.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Dr John Stockton wrote; JRS: In article <op**************@news.individual.net>, dated Thu, 14 Oct 2004 22:10:07, seen in news:comp.infosystems.www.authoring.html, Neal <ne*****@yahoo.com> posted :On Thu, 14 Oct 2004 12:29:14 +0100, Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
The reason for not sending that much code is less for dowmnoad time as it is for comprehension. To deal with this amount of code, each person must independently copy and paste to an HTML document and view it locally. That takes, on a system such as mine, far less time than deciding to investigate the situation would have taken. In fact, it is quite likely that, if I were on-line, fetching a Web page would not be as quick.
Assuming it is possible. Server headers, images etc. Your question was
about images, and you didnät have nay image in your code.
It tales me 5 seconds to get some code displayed in a browser. To get it
in other browsers, URL is nice. After all, who would keep IE for example
on primary machine?
That example was the equivalent in byte-count of one A4 page full of typescript, though longer and thinner.
Bytes are irrelevant.
Also : one can learn from reading code in News (as long as one looks out for subsequent assertions of "Balderdash!"); what one learns may well be nothing to do with the point at issue.
Well, I can usually answer to questions with less than screenfull of code
whiout ever trying it out. Thats why simplified codes showing problem are
good. But if there is lots of irrelevant code, it is very hard to spot
whiout seeing.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
On Sat, 06 Nov 2004 13:03:03 +1100, Ted Kroiter
<kr*******@optusnet.com.au> wrote: test
Fail.
alt.test This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stephen Poley |
last post by:
People in these groups, and on web-pages, not infrequently suggest that
it is worthwhile cutting down on white-space and comments in HTML and
CSS in order to reduce loading times. I and others have...
|
by: Aaron |
last post by:
Hi,
In the following code, everything looks fine on Explorer, but on Netscape
there is a large white gap between the 'top' section and the 'bottom menu'
section. I've set the style 'div img...
|
by: Applebrown |
last post by:
Hello, basically, I'm just learning intermediate CSS and trying to convert
my old table webpage completely to CSS. Hoorah, right? Well, it's not quite
going as planned. It's an extremely simple...
|
by: Uncle Pirate |
last post by:
This has me stumped. I am trying to use as little space as possible at
the top of my document but Firefox/Mozilla insists on placing vertical
space before any element. IE displays it correctly...
|
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.
...
|
by: neverstill |
last post by:
hi-
I have a table on a page there is 1 row and 2 cells
cell 1 has a user control that is basically just a DataList nested in a
table o fit's own.
then, below that user control I have some <p>...
|
by: rfox |
last post by:
I've built a site using tables for layout, and it looks ok in
everything but in IE where it places extra space around the graphics
that contain a rollover script. (Please see...
|
by: fleemo17 |
last post by:
I have another table layout that looks good in all the browsers I've
tested it in *except*, once again, IE on the PC. In IE there's extra
space around some of the table cells making up the layout. ...
|
by: markthedoc |
last post by:
Hi
I've got a problem with excess space under my footer.
I want the page to finish at the bottom of my footer, but the background image of the body tag carries on until it reaches the bottom of...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
| |