1 reply [Last post]
rbush
rbush's picture
Offline
newbie
Last seen: 9 years 25 weeks ago
Timezone: GMT-4
Joined: 2013-08-05
Posts: 2
Points: 3

I am trying to align 2 divs side-by-side within a wrapper div. For some reason the divs are staying left-side on top of right-side.

PHP CODE:

php code here.....

php code here...

CSS CODE:
#content_wrapper {
width: 980px;
margin-top: 20px;
margin-bottom: 20px;
background-color: #09F;
margin-right: auto;
margin-left: auto;
}
#content_wrapper #left-side {
float: left;
width: 450px;
display: inline;
background-color: #FF9;
}
#content_wrapper #right-side {
float: left;
width: 450px;
display: inline;
background-color: #69F;
}

rbush
rbush's picture
Offline
newbie
Last seen: 9 years 25 weeks ago
Timezone: GMT-4
Joined: 2013-08-05
Posts: 2
Points: 3

php code

<div id="content_wrapper">
    	<div id="left_side">
		php code here...
    	</div>
        <div id="right_side">
        	php code here...
	</div>
</div>