Div layout with a table.

Right now I have a table like this with a red border and a width of 700px.
Inside that table on one row, one of the columm tds has a border of green and the other td in that row has a blue border.
Inside the td with the green border I have a table with a width of 350px.
Inside the td with the blue border I have just regular text

I want to replace the table with a red border with a div.
Then inside that red div I went to have a div with a green border and a div with a blue border right next to it.
Then inside the div with the green border I want to place the table with a width of 350px.

So when i resize the width of the div with the red border, only the width of the div with blue border should resize.
The width of the div with the green border shouldn't resize,because it has the table with the black border in it.

What's the best way to achieve this with CSS?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
You can use flex to do this
.flexbox {
	display: flex;
	flex-direction: row;
.col {
	width: 100%;
.redborder {
	border: 1px solid red;
	padding: 5px;
.greenborder {
	border: 1px solid green;
	padding: 5px;
.blueborder {
	border: 1px solid blue;
	padding: 5px;
table {
	width: 100%;
	border-collapse: collapse;

Open in new window

<div class="flexbox redborder">
  <div class="col greenborder" style="width: 350px">
        <td>Table here</td>
  <div class="col blueborder">This is regular text</div>

Open in new window

Working sample here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
maqskywalkerAuthor Commented:
Cool. Thanks.
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.