- This topic is empty.
February 21, 2019 at 4:49 am #283351
For days now….I have being trying to fix/centre my background image in the correct way. I have attached a example to show this.
I need my bg image to be fixed, with a horizontal stretched 2535px, and a vertical stretched of 100%, and can be scroll down.
hope this is possible? as Im being at it for a long time…February 21, 2019 at 5:08 am #283352BeverleyhParticipant
Please provide a working demo in CodePen so that we can see your code in action.
Can you also clarify what undesirable behaviour you are trying to fix vs what you would like/expect it to do instead.February 21, 2019 at 10:24 am #283384
background: #975d7f url(“pix/bg2.jpg”) no-repeat top center;
}February 21, 2019 at 10:25 am #283385
I need a the bg to stretch vertical, and horizontal bg resize to 2535px scroll bar?February 21, 2019 at 10:26 am #283386February 21, 2019 at 11:14 am #283387BeverleyhParticipant
Sorry – CodePen is the preferred platform here. It’s trusted, we are able to test live edits more easily there, and we can do so from any device (not just desktop). The setup encourages you to present us with minimal, clearly separated code; just enough to demo the problem, which helps us to help you more concisely and quickly.
Conversely, a live site link is more restrictive; it requires us to be on desktop and troubleshoot via the developer console, usually while filtering out all the other distractions of a full site codebase. Hence, it isn’t as easy or appealing for us to work that way. It also requires a level of trust, since many opportunists use forums to solicit extra hits, many of us simply won’t click on principle.
In short, you’re more likely to receive the help you want/need if you provide us with a reduced demo in CodePen.
- The forum ‘CSS’ is closed to new topics and replies.