Skip to content

Commit

Permalink
Center background
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommimon committed Apr 2, 2021
1 parent eacf7b9 commit 3f38fc0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 1 deletion.
Binary file removed assets/agenda2030_modena.jpeg
Binary file not shown.
Binary file removed assets/background.png
Binary file not shown.
Binary file removed assets/background2.png
Binary file not shown.
Binary file added assets/background3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/prova _agenda2030_scalata.png
Binary file not shown.
2 changes: 1 addition & 1 deletion description.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- scale view for mobile-->
<meta content="width=device-width, initial-scale=1" name="viewport"/>

<div style="background-image:url('assets/background2.png') ; background-blend-mode:lighten;height:10000px; top:-1000px ">
<div class="background">

<p style = "text-align: center" class="descriptionTitle"> <b>CHI SIAMO </b></p>

Expand Down
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@ body {
.descriptionTitle {
font-size: 30px;
}
.background {
position: absolute;
background-image:url('assets/background3.png');
height: 100%;
background-repeat:no-repeat;
background-position: center;
background-size: auto;
}

@media only screen and (max-width: 1000px) {
.button {
Expand Down

0 comments on commit 3f38fc0

Please sign in to comment.