<div> css instead of <table>

Please see the attached image to follow these four items:

- There are total of 8 sections only. Box 5 doesn't include 3 subsections.
- The vertical dash lines are to help to see box 5 x 2/3 = box 6
- Box 6 is smaller than box 5 in the proportion shown.
- Center-line of box 2 and the center-line of box 6 must match.

In the image, I have included user-friendly names for each section. I appreciate if you could use them as well adding any required format names you need. This will be help me to follow your code better.

Could you please put together, a html/ css code to accomplish this?

Thank you.

Also, when I tried, I see there is a major problem with the code as shown on the attached image. How can I correct this?

section 2 (gap) is one &nbsp while section 6 (middleButton) is much wider.

section
1  40%
2 &nbsp
3 40%
4 15%
5 30%
6 ~20%
7 30%
8 15%
table.png
LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
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.

rbudjCommented:
CSS Layout:
<!doctype html>
<head>
<title>CSS Layout</title>
<style type="text/css">
body {
	text-align:center;
}
.clear {
	clear:both;
}
#form-wrapper {
	width:1048px;
	min-height:100px;
	
	overflow:hidden;
	
}
.leftForm, .rightForm {
	width:484px;
	min-height:100px;
	background-color:#cccccc;
	
}	
.gap {
	width:40px;
	min-height:100px;
	background-color:#999999;
	
	
}
.leftButton, .rightButton {
	width:404px;
	min-height: 100px;
	background-color:#cc22cc;
}
.middleButton {
	width:200px;
	min-height: 100px;
	background-color:#ff0000;
}
.right {
	float:right;
}
.left {
	float:left;
}

</style>
<head>
<body>
<div id="form-wrapper">
	<div class="gap right">4 - annual</div>
	<div class="rightForm right">rightForm</div>
	<div class="gap right">2 - gap</div>
	<div class="leftForm left">1 - leftForm</div>
	<div class="clear"></div>
	<div class="gap right">8 - empty</div>
	<div class="rightButton right">rightButtons</div>
	<div class="middleButton right">middleButton</div>
	<div class="leftButton left">leftButton</div>
</div><!--end of main-wrapper-->

</body>
</html>

Open in new window

0

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
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
You are very good.

Jealous?

Of course I am. LOL

Mike
0
rbudjCommented:
Thank you. I'm glad I could help
0
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
CSS

From novice to tech pro — start learning today.