kippie
07-09-2003, 03:37 PM
In the HTML below I have two lines of text in the same div. I try try to get one line aligned to the left and the other to the right, but apparently I do something wrong. Can someone help?
This is the HTML:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<style type="text/css"><!--
#layer { position: absolute; top: 50px; left: 50px; width: 500px; height: 100px; visibility: visible }
.left { color: #ffae06; font: 10px/10px Arial}
.right { color: #ffae06; font: 10px/10px Arial; text-align: right }-->
</style>
</head>
<body>
<div id="layer"><span class="left">This should be aligned on the left</span><br>
<span class="right">This should be aligned on the right</span>
</div>
</body>
</html>
Kippie
This is the HTML:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<style type="text/css"><!--
#layer { position: absolute; top: 50px; left: 50px; width: 500px; height: 100px; visibility: visible }
.left { color: #ffae06; font: 10px/10px Arial}
.right { color: #ffae06; font: 10px/10px Arial; text-align: right }-->
</style>
</head>
<body>
<div id="layer"><span class="left">This should be aligned on the left</span><br>
<span class="right">This should be aligned on the right</span>
</div>
</body>
</html>
Kippie