Question : text alignment in footer

hello
i am having a problem placing text say 15px from the top of the footer div. i have enclosed the code i am using and would be grateful if someone could let me know where i am going wrong. many thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
html code
-------------------------------------------------

<div id="footer"><span class="footertext">This is the footer</span></div>

css code
--------------------------------------------------

#footer {
			position:fixed;
			left:0px;
			bottom:0px;
			height:30px;
			width:100%;
			background:#808080;
			border-top:1px solid #333333;
		}
.footertext {
			font-family: Verdana, Arial, Helvetica, sans-serif;
			font-size: 12px;
			color: #FFFFFF;
			margin-top:15px;
			}
	
/* IE 6 */
* html #footer {
   position:absolute;
   top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px');
}

Answer : text alignment in footer

You have a span used for margin, you need a block for doing this. Try adding:

display:block;

Or use a div instead of span
Random Solutions  
 
programming4us programming4us