/    Sign up×
Community /Pin to ProfileBookmark

Best approach for this

I’m looking to make something like this, not exactly this but the same basic principal.

Should I have…

A) A container with a left and right div. Left with a background image right with the text content.

On the right have the purple box div, absolute align it with a negative left value.

B) Have a left and right div and make the left with an image with the size so it goes into the right space and have the purple div with a z-index higher than the left image?

[upl-image-preview url=https://www.webdeveloper.com/assets/files/2020-06-06/1591411691-717678-design.png]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumJun 06.2020 — You can do this without absoute positioning by

a) shifting the purple container by use of a negative left margin

or

b) shifting it by use of `transform:translate`
Copy linkTweet thisAlerts:
@kiwisauthorJun 06.2020 — So does this look okay?

https://jsfiddle.net/nzkiwis/w2ed9ch7/1/
Copy linkTweet thisAlerts:
@lopomajiJun 06.2020 — On the right have the purple box div, absolute align it with a negative left value.

[url=https://snaptube.cam/][color=#000000]snaptube[/color][/url] [url=https://wordtopdf.ltd/][color=#000000]word to pdf[/color][/url] [url=https://vidmate.bid/][color=#000000]vidmate[/color][/url]
×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...