Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break a fixed-percentage-width-image out of a container and keep text aligned to left of that container #131

Open
mdominguez opened this issue Apr 11, 2018 · 1 comment

Comments

@mdominguez
Copy link

mdominguez commented Apr 11, 2018

Hi Rachel,

What I would like to achieve is to have a fixed-percentage/vw-width-image pop-out of a max-width'ed container when keeping the textblock aligned to the left of the max-widht'ed container.

What I need to accomplish:
sketch

I've made a simpler version in a pen:
view pen
So I need the green text to be aligned to the left of the purple text BUT on the condition that the gray image always stays 40% or 40vw of the viewport width.

css_-_break_a_fixed-percentage-width-image_out_of_a_container_and_keep_text_aligned_to_left_of_that_container_-_stack_overflow

Thanks in advance!

@mdominguez mdominguez changed the title Break a fixed-percentage-width-image out of a container and keep text aligned to left of that containers Break a fixed-percentage-width-image out of a container and keep text aligned to left of that container Apr 11, 2018
@mdominguez
Copy link
Author

mdominguez commented Apr 11, 2018

I think I've found a solution, maybe you can check and point out if I could do anything in a more efficient or simpler way? Maybe a way without the need to use position: absolute on the image block? Thanks!

new pen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant