logo
down
shadow

CSS Background Image: Bottom of Page


CSS Background Image: Bottom of Page

By : AAbdulwahab Khan
Date : November 17 2020, 01:00 AM
it should still fix some issue On my website, I have 3 background images applied to the body element (to give the impression of top, left and bottom borders) like so: , Try:
code :
html, body { min-height: 100% }


Share : facebook icon twitter icon
How do I keep my background image at the bottom of the page?

How do I keep my background image at the bottom of the page?


By : Cameron Stuart Blair
Date : March 29 2020, 07:55 AM
Hope this helps this is my website: http://www.alexklinghoffer.com/ , You should be able to do this by doing this,
code :
background-attachment:fixed;
background-position:center bottom;
html {height: 100%;}
body {
    background-position: 0% 100%;
    background-attachment: fixed;
}
Fixed background image until bottom of page

Fixed background image until bottom of page


By : Marcos Koppe
Date : March 29 2020, 07:55 AM
Any of those help Well, this was one jiggy nut! I did come up with a not so stable trick to achieve this. I don't have time to develop it any more right now, but perhaps it might be a working concept.
Main contept
code :
#footer:hover ~ #background {
    background-position: center bottom;
}
Background-image at bottom of screen or at bottom of page

Background-image at bottom of screen or at bottom of page


By : NealB
Date : March 29 2020, 07:55 AM
Does that help I have two background-images. I want them to be fixed at the bottom of screen or at the bottom of page if the info on page is too much. I'm able to code only one of the situations - background-images are fixed to the bottom of screen or to the bottom of page(body{}). , Something like this?
code :
<!DOCTYPE html>
<html>
<head>
<style>
html{
    min-height:100%;
    background-attachment:scroll;
    background-image:url(https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg), url(https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg);
    background-repeat:no-repeat;
    background-position:bottom left, bottom right;
}
body {
    line-height: 1;
    padding-bottom:200px;
}
</style>
</head>
<body>
<p>sample text</p>
<script>
addContent = function(){
    var p = document.createElement('p')
    var b = document.getElementsByTagName('body')[0]
    var t = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent feugiat tincidunt urna at ultrices. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis id mauris arcu, sit amet suscipit sem."
    var l = new Array(10)
    p.appendChild(document.createTextNode(l.join(t)))
    b.appendChild(p);
    return false
 }
</script>
<a href="#" onclick="return addContent()">add content</a>
</body>
</html>
Background image for div not touching the bottom of the page

Background image for div not touching the bottom of the page


By : Dani
Date : March 29 2020, 07:55 AM
seems to work fine Try to wrap all this into another container and set explicit height to it and position: relative
code :
.wrapper {
    height: 370px;
    position: relative;
    overflow: hidden;
}
.testimonials {
     background-image: url('http://oi60.tinypic.com/f4g3t3.jpg');
     background-size: cover;
     background-position: 100% 70%;
     background-repeat: no-repeat;
     height: 350px;
     margin-bottom: -300px;
     font-size: 24px;

}

footer {
     word-wrap: normal;
     position: absolute;
     bottom: 0;
     width: 100%;
}

footer a {
     color: #ffffff;
}

footer a:visited {
     color: inherit;
}

footer a:hover {
     color: #404040;
}

@media (min-width: 981px) {
     footer img {
         height: 300px;
         width: 100%;
         top: -9999px;  
         z-index: 10;
     }

     .footer-content-mobile {
         display: none;
     }
}

.footer-content {
     color: #ffffff;
     position: absolute;
     left: 0;
     right: 0;
     top: 250px;
     margin: 0 auto;
     font-size: 20px;
     padding-bottom: 10px;
}

.bullet {
     margin-left: 20px;
     margin-right: 20px;
}
<div class="wrapper">
<div class="testimonials">
    <div class="col-md-8 text-center">
        <?php dynamic_sidebar( 'testimonial-widget' ); ?>
    </div>
    <div class="col-md-4">
    </div>
</div>

<footer class="navbar-bottom">
    <div class="row">
        <div class="col-md-12 text-center">
        <p class="footer-content">Some content...</p>

        <p class="footer-content-mobile">Some content...</p>
        </div>
    </div>

    <img src="http://oi59.tinypic.com/xfq6x5.jpg" />
</footer>
</div>
Background image won't go all the way to the bottom of page

Background image won't go all the way to the bottom of page


By : user5564520
Date : March 29 2020, 07:55 AM
will help you you may set the image inside html and set an opaque color on top of it in body
Related Posts Related Posts :
  • RouterLink is not working properly dynamically in angular 6
  • Simple HTML rendering issue
  • Best Approach to separate Form sections
  • How to Organize Phonegap HTML Files
  • Wrap a long single word using CSS
  • I am trying to implement a hover effect using CSS3 Transitions
  • How can I avoid hard coding line height while vertically centering element in a div?
  • Bootstrap3 - Removed container-fluid
  • Bootstrap framework not responsive for asp.net webform
  • How to align two inner divs inside outer absolute positioned div that has fixed width in which both divs have the same w
  • Div to ignore html tags
  • Prevent caching and stale content with a static web site
  • Is there a way to change the whole document with one selector in CSS?
  • why cant I click om my navigationbar links?
  • Is there a CSS/HTML way to cut multiple shapes out of the top/bottom of a div?
  • css border around multiple links/images
  • 'No data was received in the uploaded file', but file is not empty
  • How input boxes save previous entries
  • AMP carousel direction change
  • Bootstrap multiple carousel not working on thumbnails click
  • Is there a way to put a permanent space into an input field?
  • Html boxes not displaying properly
  • How can I change a variable in Jekyll _config.yml dynamically?
  • How can I prevent DIVs from overlapping a right floated image?
  • Eclipse and .tml files highlighting not working
  • Footer is not in the bottom of the window, (phonegap jquery mobile app for windows mobile)
  • How to put div over another
  • How to use glyphicons in bootstrap 3.0
  • Wordpress page links not working
  • How Do I Use CSS to Set the Color of An ALink?
  • Webpage doesn't scroll smoothly on screen
  • YouTube iframe, browser looks for file locally
  • html displaying inline image
  • Font acting differently on IE and Firefox
  • Encoding and decoding of the character references
  • An Image Button navigate to another site html/css
  • IE8 "Save Target as ..." won't display for block elements
  • Image hover transition for span - CSS
  • How to apply min and max on textarea?
  • How to draw multiple horizontal lines (Notebook Paper effect) using css?
  • Table Printing Issue: Gaps in top and Bottom Border of th Elements
  • grouping elements with div and applying stylesheet for that group
  • Click <div> to expand, then click again to shrink - Its expanding, just not shrinking
  • CSS - How can I center a <script>'s output?
  • Django's template variable gets interpreted as HTML
  • ngx datatable vertical scroll with rowheight set to auto
  • How to make input text border with CSS when it's OnFocus
  • Anyone know of a calendar web widget for my website I could use?
  • How does Bootstrap manage to use fixed positioning for navbar on iOS?
  • Centered text in fully clickable table cell
  • Compare HTML and HTML5
  • steps of creating webpage in bangla
  • css root element margin
  • What is the point of using absolute positioning in CSS?
  • Responsive solution for long URLs (that exceed the device width)
  • Divs don't collapse as they should - media queries
  • QTreeWidgetItem display html
  • Testing html/css image on local from jfiddle
  • long attribute value of HTML
  • Why my svg picture is truncated at the bottom when embedded in html
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org