HTML paragraphs not displayed next to each other horizontally

I am learning html/css and have written a simple bit of code to show the content of 3 divisions next to one another horizontally but it doesn't do what I intended. Rather it displays the divisions under one another.
Can you see what is wrong with my code  which is shown below ?
I also attach the screen shot of the code as viewed in Internet explorer.

html code viewed in Internet explorer
<!DOCTYPE html >

<title>Test 1</title>

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
body {
	line-height: 1;
ol, ul {
	list-style: none;
blockquote, q {
	quotes: none;
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
table {
	border-collapse: collapse;
	border-spacing: 0;

#div1 {float:left; width:300px;border-left:0px; background-color:#FF66FF;}

#div2 { width:300px; background-color:#9999FF;border-left:340}

#div3 {width:300px;background-color:#66FFCC};



<div id="div1">
	<p> Parabraph 1</p>

<div id="div2">
	<p>Paragraph 2</p>

<div id="div3">
	<p>Paragraph 3</p>



Open in new window


Roger AlcindorAsked:
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.

Roger AlcindorAuthor Commented:
Wrong picture uploaded, here is the correct one.htmlFileViewed in InternetExplorer
Dave BaldwinFixer of ProblemsCommented:
All 3 divs need to have 'float:left;' for them to 'float' next to each other.
Dave BaldwinFixer of ProblemsCommented:
Like this:
#div1 {float:left; width:300px;border-left:0px; background-color:#FF66FF;}

#div2 {float:left;width:300px; background-color:#9999FF;border-left:340}

#div3 {float:left;width:300px;background-color:#66FFCC};

Open in new window


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
Roger AlcindorAuthor Commented:
Thanks Dave.
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.