INGREDIENTS
1 serving
z-index: 1; /* sit on top
1 box
padding-top: 10px; /* location of the
1 serving
width: ; /* full width
1 serving
height: ; /* full height
background-color: rgb; /* fallback color
9/10
background-color: rgba; /* w/ opacity
1 serving
display: block
1 serving
margin-top:200px
1 serving
display: block
1 serving
color: #ccc
1 serving
the close button
1 serving
top: 15px
1 serving
color: #f1f1f1
1 serving
font-size: 40px
1 serving
color: #bbb
1 serving
the image used to trigger the modal
1 serving
myimg {
1 serving
border-radius: 5px
1 serving
cursor: pointer
transition: 3s
1 serving
}
1 serving
myimg:hover
1 serving
the modal
1 serving
modal {
1 serving
display: none; /* hidden by default
1 serving
position: fixed; /* stay in place
? left: 0; left: 0; left 0.0 {"us"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}, "metric"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}}
? top: 0; top: 0; top 0.0 {"us"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}, "metric"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}}
1 serving
overflow: auto; /* enable scroll if needed
1 serving
}
1 serving
modal content
1 serving
modal-content {
1 serving
margin: auto
1 serving
width
1 serving
max-width: 700px
1 serving
}
1 serving
caption of modal image - same width as the image
1 serving
caption {
1 serving
margin: auto
1 serving
width
1 serving
max-width: 700px
1 serving
text-align: center
padding: 1px
1 serving
height: 150px
1 serving
}
1 serving
add animation - zoom in the modal
1 serving
modal-content
1 serving
webkit-animation-name: zoom
webkit-animation-duration: 6s
1 serving
animation-name: zoom
animation-duration: 6s
1 serving
}
1 serving
webkit-keyframes zoom {
1 serving
from
1 serving
to
1 serving
}
1 serving
keyframes zoom {
1 serving
from
1 serving
to
1 serving
}
1 serving
close {
1 serving
position: absolute
1 serving
right: 35px
1 serving
font-weight: bold
transition: 3s
1 serving
}
1 serving
close:hover
1 serving
close:focus {
1 serving
text-decoration: none
1 serving
cursor: pointer
1 serving
}
1 serving
image width on smaller screens
1 serving
media only screen and {
1 serving
modal-content {
1 serving
width
1 serving
}
1 serving
}
1 serving
media only screen and {
1 serving
seloshome{
1 serving
width:13%
1 serving
height:auto
1 serving
seloshome{
1 serving
width:20%
1 serving
height:auto
1 serving
} }