html - fixed bottom bar with css gradient background -


i trying put bottom bar bottom of screen. have piece of css code creates bar me. haven't able fix bar bottom.

css

.top_bar {     display:block;     height:18px;     margin-bottom:10px;     margin-top:10px;      background-image: linear-gradient(left bottom, rgb(135,30,51) 15%, rgb(90,115,183) 58%, rgb(90,116,183) 79%);     background-image: -o-linear-gradient(left bottom, rgb(135,30,51) 15%, rgb(90,115,183) 58%, rgb(90,116,183) 79%);     background-image: -moz-linear-gradient(left bottom, rgb(135,30,51) 15%, rgb(90,115,183) 58%, rgb(90,116,183) 79%);     background-image: -webkit-linear-gradient(left bottom, rgb(135,30,51) 15%, rgb(90,115,183) 58%, rgb(90,116,183) 79%);     background-image: -ms-linear-gradient(left bottom, rgb(135,30,51) 15%, rgb(90,115,183) 58%, rgb(90,116,183) 79%);      background-image: -webkit-gradient(         linear,         left bottom,         right 0,         color-stop(0.15, rgb(135,30,51)),         color-stop(0.58, rgb(90,115,183)),         color-stop(0.79, rgb(90,116,183))     ); } 

how can fix bottom?

i have tried code below didn't work. fixes bar bottom gradient bar shrinks...

position: fixed; bottom: 30px; 

just add these 3 rule, fixed positioning needs element's width mentioned, because specialized form of absolute positioning:

position: fixed; width: 100%; bottom: 30px; 

fiddle


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -