Okey here's my problem. I'm new in CSS so chill on me. I want to make simply design for my website with 3 divs: Left Bar, News and Right Bar. I want the Left Bar to have 15px margin to left and min margin with News 15px. Same on right bar but with right margin. I want the News div to be on center all the time with width 700px or sth like that I dont know exactly how much for now. And I dont know how to make them be in line. I mean when a person is resizing his browser i want the news always be on center but when it hit critical 15px with any bar it stops. I was searching for this about 2h and was trying any dipslays, floats etc. but maybe I miss sth.
my divs:
<div id="main">
<div id="leftbar">
</div>
<div id="newsContainer">
@RenderBody()
@Scripts.Render("~/bundles/jquery")
@RenderSection("scripts", required: false)
</div>
<div id="rightbar">
</div>
</div>
My CSS for now:
#leftbar
{
width: 300px;
margin: 0 15px;
background-color: red;
}
#newsContainer
{
width: 700px;
margin: 0 auto;
background-color: blue;
}
#rightbar
{
width: 200px;
margin: 0 15px;
background-color: yellow;
}
And visualy I want it to be like this:
http://imagizer.imageshack.us/v2/1000x795q50/538/RENDkl.jpg
@Edit: In this fiddle its perfect but somehow the rightbar is under this both divs