Having issues with background image of a section

Jennifer Mejia

This is probably something simple that I can't quite figure out. But I am trying to have a gif as a background to create an illusion of flowers growing with a campaign logo image over it and a donation button.

When in full screen, the background gets cut off at the bottom. Somehow the image is being pushed down. As you make the screen smaller for mobile responsiveness, the full image starts to appear (in height). I'm not sure what I am doing wrong.

Campaign Page

Any help would be much appreciated! Thank you. Below is the code I am currently using.

.header-wrapper{
        width: 100%;
	background-image: url(https://secure3.convio.net/little/images/content/pagebuilder/HorticultureBanner-Animated1.gif);
        background-size: cover;
	position: relative;
	margin: 0 auto 0 auto;
	font-family: "museo-sans", Helvetica, Arial, sans-serif;
	
}
.centered { margin-left: auto; margin-right: auto; }
.align-center { text-align: center; }
.campaign-logo {
    max-width: 70%;
position: relative;
height: auto;
}
.padding-3x { padding: 45px; }
.button1{
    color: #fff;
    display: inline-block;
    font-size: 18px;
    letter-spacing: .75px;
    padding: 15px 21px;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    vertical-align: middle;
}
.green-bg { background-color: #8ec63f;}
<div class="header-wrapper contained-12 centered align-center middle">
<img class="campaign-logo" src="https://secure3.convio.net/little/images/content/pagebuilder/horticulture_logo.png"/>
<p class="padding-3x"><a class="button1 green-bg" title="Give Now" href="Donation2?idb=[[S76:idb]]&amp;df_id=1540&amp;1540.donation=root">Give Now</a></p>
</div>

A-312

Uou can use : background-position: center bottom;

.header-wrapper {
  width: 100%;
  background-image: url(https://secure3.convio.net/little/images/content/pagebuilder/HorticultureBanner-Animated1.gif);
  background-size: cover;
  background-position: center bottom;
  position: relative;
  margin: 0 auto 0 auto;
  font-family: "museo-sans", Helvetica, Arial, sans-serif;
}

.centered {
  margin-left: auto;
  margin-right: auto;
}

.align-center {
  text-align: center;
}

.campaign-logo {
  max-width: 70%;
  position: relative;
  height: auto;
}

.padding-3x {
  padding: 45px;
}

.button1 {
  color: #fff;
  display: inline-block;
  font-size: 18px;
  letter-spacing: .75px;
  padding: 15px 21px;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  vertical-align: middle;
}

.green-bg {
  background-color: #8ec63f;
}
<div class="header-wrapper contained-12 centered align-center middle">
  <img class="campaign-logo" src="https://secure3.convio.net/little/images/content/pagebuilder/horticulture_logo.png" />
  <p class="padding-3x"><a class="button1 green-bg" title="Give Now" href="Donation2?idb=[[S76:idb]]&amp;df_id=1540&amp;1540.donation=root">Give Now</a></p>
</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android: Having Background as an Image?

From Dev

Background image issues

From Dev

Scale background image to section - bootstrap

From Dev

Section background image not working on firefox

From Dev

Having issues with CSS3 background colors

From Dev

Having trouble with CSS background image

From Dev

Apply background color to the container having background image

From Dev

Having some issues with 9patch image

From Dev

Unable to change background image for specific section in HTML

From Dev

Section with background image expanding to overall sidebar

From Dev

HTML and CSS Background image in a specific section

From Dev

Having problems with background image using CSS

From Dev

Strange CSS issues on Full width background image

From Dev

Issues setting gradient image as UINavigationBar background

From Dev

Swift - Issues with setting background image in a UIScrollView

From Dev

JQuery Navbar Background-image shuffling issues

From Dev

Having trouble adding a background to the top of an image without it bleeding past the image

From Dev

How to set different Background Image For Grouped Table Section..?

From Dev

how to set different image background for the same section on mobiles

From Dev

How to set different Background Image For Grouped Table Section..?

From Dev

How to blur the div below the section with CSS 3 without background image?

From Dev

How to set innnerhtml content to html section background image url

From Dev

I'm trying to get a centered background image on one section only

From Dev

Horizontally align a div (having background image) inside an <a> tag

From Dev

Moving JButtons to the left when having a background image in JFrame

From Dev

Having a specific background image for each and every list item

From Dev

(CSS)Trouble having background image resize for mobile device

From Dev

Moving JButtons to the left when having a background image in JFrame

From Dev

Having a specific background image for each and every list item

Related Related

  1. 1

    Android: Having Background as an Image?

  2. 2

    Background image issues

  3. 3

    Scale background image to section - bootstrap

  4. 4

    Section background image not working on firefox

  5. 5

    Having issues with CSS3 background colors

  6. 6

    Having trouble with CSS background image

  7. 7

    Apply background color to the container having background image

  8. 8

    Having some issues with 9patch image

  9. 9

    Unable to change background image for specific section in HTML

  10. 10

    Section with background image expanding to overall sidebar

  11. 11

    HTML and CSS Background image in a specific section

  12. 12

    Having problems with background image using CSS

  13. 13

    Strange CSS issues on Full width background image

  14. 14

    Issues setting gradient image as UINavigationBar background

  15. 15

    Swift - Issues with setting background image in a UIScrollView

  16. 16

    JQuery Navbar Background-image shuffling issues

  17. 17

    Having trouble adding a background to the top of an image without it bleeding past the image

  18. 18

    How to set different Background Image For Grouped Table Section..?

  19. 19

    how to set different image background for the same section on mobiles

  20. 20

    How to set different Background Image For Grouped Table Section..?

  21. 21

    How to blur the div below the section with CSS 3 without background image?

  22. 22

    How to set innnerhtml content to html section background image url

  23. 23

    I'm trying to get a centered background image on one section only

  24. 24

    Horizontally align a div (having background image) inside an <a> tag

  25. 25

    Moving JButtons to the left when having a background image in JFrame

  26. 26

    Having a specific background image for each and every list item

  27. 27

    (CSS)Trouble having background image resize for mobile device

  28. 28

    Moving JButtons to the left when having a background image in JFrame

  29. 29

    Having a specific background image for each and every list item

HotTag

Archive