Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- <div id="projectImgs"><?php
- foreach ($imgsFromProject as $extraImg) { ?>
- <div class="wrapperExtraImg" data-image="<?php echo 'admin/' .$extraImg->image_path; ?>" style="background-image:url(<?php echo 'admin/' .$extraImg->image_path; ?>)"></div>
- <?php } ?>
- </div>
- ...
- ...
- #projectImgs {
- font-size: 0;
- margin: 30px auto;
- width: 100%;
- max-width: 900px;
- }
- .wrapperExtraImg {
- text-align: center;
- cursor: pointer;
- position: relative;
- width: 435px;
- display: inline-block;
- background-repeat: no-repeat;
- background-position: center center;
- background-size: cover;
- height: 435px;
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement