Home / ASP.NET Wiki / CSS / Great CSS Tutorials / Fixed Div In The Bottom Of The Page

Fixed Div In The Bottom Of The Page

 Rate It (2)

Hi everybody,
I am going to write an example div fixed in the bottom. First let's write our divs to be fixed in bottom.

----------  

<div id="ContainerDiv">

    <div id="InnerContainer">

        <div id="TheBelowDiv">

            I'm at the bottom at page.

        </div>

    </div>

</div>  

Now lets write our css codes.

---------- 

#ContainerDiv {

margin: auto;

position: fixed;

margin: auto;

left: 0;

bottom: 0;

width: 100%;

}

#InnerContainer{

width: 100%;

}

#TheBelowDiv{

font-size: 18pt;

font-family: Tahoma;

text-align: center;

color:White;


---------- 

After we have div at the bottom.

Have a nice day :) 

 

Revision number 2, Sunday, September 04, 2011 4:04:21 PM by codenickel

Comments

How is this ASP.NET?

good approach.

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. abiruban (1)