# Survey Form - Certification Project

**URL:** <https://forum.freecodecamp.org/t/survey-form-certification-project/573215>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [November 22, 2022, 5:50pm UTC](https://forum.freecodecamp.org/t/survey-form-certification-project/573215 "2022-11-22T17:50:49Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![shamrouzawana](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shamrouzawana/32/294067_2.png) [@shamrouzawana](https://forum.freecodecamp.org/u/shamrouzawana)\
**Post date:** [November 23, 2022, 5:41pm UTC](https://forum.freecodecamp.org/t/survey-form-certification-project/573215/6 "2022-11-23T17:41:35Z")

</div>

> Set position property as absolute if you want to float the element on the parent element

```auto
position: absolute;

```

> now set the width and height for the element as you want  
> e.g

```auto
width: 100%; /* or as much you want*/
height: 100%;

```

after that you can set left, right / top, bottom properties for the element  
these properties will work to position the element

```auto
top: 0; /* or as much space you want want from the top of parent element*/
left: 0; /* or as much space you want want from the left of parent element*/

```

Setting both left and right properties at same time will also effect on the width of element  
  
Setting both bottom and top properties at same time will also effect on the height of element

```auto
body::before {
  content: '';
  background-size: cover;
  background-attachment: fixed;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* now you have to set the background for this element */
  background-image: linear-gradient( 115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7) ),url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg);
}

```

now this element can cover the whole area of body element and cause to cover the child elements too, like form  
there is a property **z-index** will help to solve the issue  
e.g

```auto
z-index: 0;/* or set it -1 to send the element backward to the parent element*/

```

---

_[View the full topic](https://forum.freecodecamp.org/t/survey-form-certification-project/573215)._
