<div class="wrapper">
<section class="section-class">
<p>Make this 450px wide for text only. Image needs to stay full width when resolution permits and scale to 100% with lower res
<p>
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>
<img...
CSS
.section-class {
width:100%;
}
.section-class img {
/*max-width:100%;*/
}
.section-class p {
/* this needs to be narrower than the image, say 450px but the image needs to stay full width or scalable with screen*/
/*tried:*/
width:90%;
max-width:450px;
}
.wrapper {
width:700px;
}
@media (max-width: 767px) {
.wrapper {
width:100%;
}
}
@media (min-width: 1200px) {
.wrapper {
width:860px;
}
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.