I am trying to position different size & font text so that they are closer but no overlapping. In this example I am using position:absolute. The problem is with some fonts other than comic sans, overlapping can occur.
Can anyone think of a way to get the text items closer together without ever overlapping? I don't want to use images.
Clive
Can anyone think of a way to get the text items closer together without ever overlapping? I don't want to use images.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en">
<head><title>Font Contrast</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
body {text-align:center}
#main {text-align:left; width:500px;
margin:0 auto; background:yellow;
padding:20px 20px 10px 20px;
border-top: thick solid black;
border-bottom: thick solid black}
.small {font:normal normal 16px "Palatino Linotype", Georgia, serif}
.big {font:normal bold 64px "Comic Sans MS", "Lucida Calligraphy",
cursive; position:relative; top:-36px}
.right {float:right; font:normal bold 8px verdana, sans-serif}
.left {float:left; font:normal bold 8px verdana, sans-serif}
</style></head><body>
<div id="main">
<span class="small">A N O T H E R</span><br />
<span class="big">newsletter</span><br />
<span class="left">Volume 1 • Number 1</span>
<span class="right">April • 2005</span>
</div></body></html>
Clive