Home › Forums › Launch Pad HTML › Background Size / Min-Width
- This topic has 3 replies, 2 voices, and was last updated 11 years, 5 months ago by
Allan.
- AuthorPosts
- October 5, 2013 at 5:15 am #6749
TourneDisque
ParticipantHi themecatcher,
Is it possible to keep min-width from being ignored when the background image is 100% width and repeats-y.
index.html
<div id="img-overlay-effects" class="custom"></div>
styles.css
#img-overlay-effects {
min-height: 100%;
min-width: 837px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
background-repeat: repeat;
}.custom {
background: #000000 url(http://i.imgur.com/4UNT1SG.jpg) center center fixed repeat-y;
background-size: 100% auto;
}note: min-width is ignored.
October 5, 2013 at 11:00 pm #6778Allan
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 6, 2013 at 2:57 am #6783TourneDisque
ParticipantHi themecatcher,
Yes, that is pretty much that the desired effect above but now is it possible to translate the same style into the other image code. Seems like I’d be so simple but my experiment fail and background repeat is now ignored.
<div id="nojs-background">
<!-- Non-JavaScript background -->
</div>
body {
min-width: 837px;
height: 100%;
margin: 0px;
}#nojs-background img {
min-height: 100%;
min-width: 837px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
background-repeat: repeat;
}.js-enabled #nojs-background {
background-size: 100% auto;
}TourneDisque
TC Member- This reply was modified 11 years, 5 months ago by
TourneDisque.
- This reply was modified 11 years, 5 months ago by
TourneDisque.
October 8, 2013 at 3:51 am #6804Allan
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 11 years, 5 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.