Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Why is element pushing outside the bounds fixed div?

Vinyl Warmth:

In my app I have a Fixed footer, inside this I want an input text box on the left and a button on the right.

The html and LESS I have is:







.button {
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
font-family: Arial;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 20px;
border: solid #1f628d 0px;
text-decoration: none;
}

#totalPoints {
position:fixed;
left:0px;
bottom:0px;
height:60px;
width:100%;
margin: 0 20px 0.5em 20px;
background:#fff;

input {
width: 30%;
float: left;
}

.button {
float: right;

}
}

I am expecting the button on the right to be within the confines of the div, but it is Pushing outside the div.

Does anyone know why?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Why is element pushing outside the bounds fixed div?

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×