Click to See Complete Forum and Search --> : positioning not working


Sheldon
09-22-2005, 12:51 AM
Hi i am using this css code to place a bit of text but its not working, just putting the text where the span is on the code?

The css


#yellowtext .yellowtext {
position:relative;
left:430;
top:2600px;
color: #ff0000;
z-index:1;
}


and the code


<?php
session_start();
$global_email = 'info@slweb.co.nz';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 Transitional//EN" >
<html>
<head>
<link href="promo_styles.css" rel="stylesheet" type="text/css">
<link rel="icon" href="http://www.slweb.co.nz/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://www.slweb.co.nz/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Sheldon Lendrum Web - The future of web design, PHP,mySQL, web design, databse programming,graphic design, back end programming, interent and intranet.</title>
</head>
<body>

<div class="blackbanner" id="blackbanner">

<span class="leftmatrix" id="leftmatrix"><img src="matrix.jpg" alt="slweb" width="149px" height="239px" clas="leftmatrix"></span>

<span class="yellowtext" id="yellowtext">the future of web design&nbsp;.&nbsp;.&nbsp;.</span>//this one here

<span class="logotext"><a href="http://www.slweb.co.nz/goto.php">http://www.slweb.co.nz</a></span>

</div>

<div class="contactform">




</div>

</body>
</html>

bathurst_guy
09-22-2005, 01:07 AM
the way you have specfified it here is
#yellowtext .yellowtext {
this means only items with the class yellowtext thats parent elements id is yellowtext.
either insert a comma
#yellowtext, .yellowtext {
to say one or the other or delete one

Sheldon
09-22-2005, 01:23 AM
Thanks and it worked!!