chazfort
01-06-2008, 05:08 PM
Hey folks,
I have a series of news pieces, each of which is followed by a small arrow that users can click to get to the article. The arrow is an html image added as part of a <p> and an <a href>. In CSSEdit the arrow lines up with the last line of the text. In Safari it does the same. In Firefox (2.0.0.11) it moves down a line. Any ideas why?
HTML:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Home Page | Institute for Sustainable Living, Art & Natural Design [ISLAND]</title>
<link rel="stylesheet" media="screen" type="text/css" href="errortest1.css" />
</head>
<body>
<div class="testcontainer">
<a href="newsletters.html"><img src="newsletters.png" alt="newsletters" /></a>
<h1><a href="newsletters.html">ISLAND Newsletters</a></h1>
<p>Check out our archive of past newsletters and subscribe to receive monthly emails and/or biannual print news (it's free!)<a href="newsletters.html"><img src="littlearrow.png" alt="[GO]" /></a></p>
<div class="spacer"></div>
</div>
</body>
</html>
CSS:
h1, p {
font-size: 100%;
font-weight: normal;
}
img {
border: none;
}
.testcontainer {
margin: 20px;
}
.testcontainer img {
float: left;
clear: left;
margin: 0 0 10px 0;
}
.testcontainer p a img {
width: 1em;
clear: none;
float: right;
margin: 0 1em 0 0;
}
.testcontainer p a:hover img {
background: #ccf;
}
.testcontainer h1 a{
font-weight: bold;
font-size: 1em;
margin: 0 0 0 20px;
}
.testcontainer p {
color: #333;
font-size: 1em;
line-height: 1.4em;
margin: 0 0 0 95px;
}
.testcontainer a:link, .newspiece a:visited {
color: #900;
text-decoration: none;
}
.testcontainer a:hover, .newspiece a:active {
text-decoration: underline;
color: #900;
}
.spacer {
clear: both;
}
I have a series of news pieces, each of which is followed by a small arrow that users can click to get to the article. The arrow is an html image added as part of a <p> and an <a href>. In CSSEdit the arrow lines up with the last line of the text. In Safari it does the same. In Firefox (2.0.0.11) it moves down a line. Any ideas why?
HTML:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Home Page | Institute for Sustainable Living, Art & Natural Design [ISLAND]</title>
<link rel="stylesheet" media="screen" type="text/css" href="errortest1.css" />
</head>
<body>
<div class="testcontainer">
<a href="newsletters.html"><img src="newsletters.png" alt="newsletters" /></a>
<h1><a href="newsletters.html">ISLAND Newsletters</a></h1>
<p>Check out our archive of past newsletters and subscribe to receive monthly emails and/or biannual print news (it's free!)<a href="newsletters.html"><img src="littlearrow.png" alt="[GO]" /></a></p>
<div class="spacer"></div>
</div>
</body>
</html>
CSS:
h1, p {
font-size: 100%;
font-weight: normal;
}
img {
border: none;
}
.testcontainer {
margin: 20px;
}
.testcontainer img {
float: left;
clear: left;
margin: 0 0 10px 0;
}
.testcontainer p a img {
width: 1em;
clear: none;
float: right;
margin: 0 1em 0 0;
}
.testcontainer p a:hover img {
background: #ccf;
}
.testcontainer h1 a{
font-weight: bold;
font-size: 1em;
margin: 0 0 0 20px;
}
.testcontainer p {
color: #333;
font-size: 1em;
line-height: 1.4em;
margin: 0 0 0 95px;
}
.testcontainer a:link, .newspiece a:visited {
color: #900;
text-decoration: none;
}
.testcontainer a:hover, .newspiece a:active {
text-decoration: underline;
color: #900;
}
.spacer {
clear: both;
}