D
D
DigitalHNE2015-10-03 23:34:39
css
DigitalHNE, 2015-10-03 23:34:39

How to position an element at the bottom of the page?

Can you please tell me how to make this layer stay in one place when scrolling the page?
If you set position: fixed; then the width of the element is changed

position: fixed;
  height: 20px;
  background-color: #FF3D00;
  margin: 0;
  margin-bottom: 0%;
  padding-right: 5%;
  padding-left: 5%;
  padding-top: 0.25%;
  padding-bottom: 0.25%;
  font-family: 'Open Sans', sans-serif;
  color: #FFFFFF;
  font-size: 10px; 
  min-width: 1024px;

33911c4b10264a56a8d2393f53e2d40b.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@ksider, 2015-10-03
@DigitalHNE

Well, you still need to give him a place

div {
bottom:0; right:0; left:0;
}

well, the width

D
dk-web, 2015-10-03
@dk-web

jsfiddle.net/dkweb/7dgc8c2g
bottom: 0;
width: 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question