Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
HTML
<html>
<head>
<title>Untitled Document</title>
</head>

<style type="text/css">
body{
	margin:auto;
}

.FMain{
	max-width:900px;
	min-width:1024px;
}

.footer{
	background-color:yellow;
	width:100%;
	position:fixed;
	bottom: 0;
	}
</style>

<body>
    <div class="FMain">
    <div class="footer">footer footer</div>
    </div>
</body>
</html>

-------------------------------------------------------------------------------
if any one can help to solve this issue.

means the footer is always fixed & when you change the width of "FMain" the width of the footer will change to be always equal & I need min/max.
Posted
Updated 15-Mar-11 1:29am
v2
Comments
Wild-Programmer 15-Mar-11 7:30am    
formatted the html markup

1 solution

Try this

Fixed Footer using CSS[^] and it's preview Clickety[^]
 
Share this answer
 
Comments
Espen Harlinn 15-Mar-11 14:57pm    
My "fünf", as you provided a link to a german page :)
fjdiewornncalwe 15-Mar-11 14:59pm    
+5. Great find.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900