Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Silly CSS question - cant figure out

I cant believe Im asking this, as it seems soo simple, but I cannot figure it out :-(

Im trying to float the divRight into the right of divLeft inside divView, so it should show as:-
User generated image
However my code produces:-
 User generated image
My code is simple:-
HTML:-
<div id="divView">
  <div id="divLeft">

  </div>
  <div id="divRight">
  
  </div>
</div>

Open in new window


CSS:-
#divView {
  position:absolute;
  top:20px;
  left:20px;
  bottom:20px;
  right:20px;
  background-color:blue;
}

#divLeft {
  top:0px;
  width:100px;
  height:100%;
  background-color:green;
}

#divRight {
  height:100%;
  width:100%;
  background-color:pink;
}

Open in new window


Ive put it on jsfiddle to show you what Im struggeling with :-S
https://jsfiddle.net/nt4yf9nv/

Any ideas, I cannot figure it out
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
tonelm54

ASKER

Thank you