So, I have 3 main divs; The gray div, which is the wrapper, the blue div, which is on the left, and the orange div, which is on the right. The blue div has a fixed width and height.
My question is, how can I make a TEXT inside the fluid of an orange div when resizing the browser window? I don’t want the whole orange div to just jump down under the blue div, I want the text to be liquid. How to achieve this?
Thank you for your time:)
Here's the JSFiddle link https://jsfiddle.net/op4nnmb4/7/
.wrapper {
position: absolute;
max-width: 1200px;
width: 100%;
margin-left: 10px;
background: #3c3c3c;
}
.leftimg{
width:600px;
height: 2900px;
background: #8cceff;
position: relative;
float: left;
}
.rightside {
background: #F96;
float: right;
width: 50%;
height: 100%;
}
.projectimg {
width: 600px;
position: relative;
float: left;
margin-bottom: 50px;
}
.project-title {
font-family: 'Abel';
color: #FFF;
float: left;
margin-left: 40px;
font-weight: 300;
display: block;
}
.project-title .title1 {
font-size: 2.5rem;
}
.project-title .title2 {
font-size: 1.4em;
clear: both;
display:block;
}
.context {
float: left;
color: rgba(255,255,255, 0.7);
width: auto;
margin: 20px 0 0 40px;
display: block;
position: relative;
}
.context p {
font-size: 1.06rem;
line-height: 1.6rem;
font-family: 'Roboto Condensed';
font-weight: 300;
}
source
share