Side By Side <Div>

Posted on 2014-01-22
Last Modified: 2014-01-23
I am trying  to add a <Div> "Yellow" to the right of the of the body of text that begins with Skiptracer.  However; the <Div> always ends up under and not to the right.  How can I fix this?  Thank you.
Question by:DS928
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 35

Accepted Solution

Dan Craciun earned 250 total points
ID: 39802278
Add float:left; to your Methodology div and float:right; to your yellow div.

PS: inline CSS is usually a bad idea...


Assisted Solution

ravikantninave earned 250 total points
ID: 39802440
use float:left or try to use float:right
after div do not forget to use <div style="clear:both"></div>

Author Comment

ID: 39804642
The divs are left and right but the yellow needs to be at the top right.  its still at the bottom.
 <div align="left" style="padding-left:72px; float:left;"<h2><strong>METHODOLOGY</strong></h2></div>

Open in new window

<div align="left" style="background-color:#f8ea04;width:200px; float:right;">Yellow</div>

Open in new window


Expert Comment

ID: 39804661
margin-top:- some value

Author Comment

ID: 39804671
I moved it up and it worked.  Thank you all.
<div align="left" style="padding-left:72px; "<h2><strong>METHODOLOGY</strong></h2></div>
    <div align="left" style="background-color:#f8ea04;width:200px; float:right;">Yellow</div>
    <div align="left" style="width:630px;padding-left:72px">

Open in new window


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Obsolete font tag need to convert to CSS 3 54
email validation 9 62
.CSS HTML Help 3 55
allow link tag to be submit like form 15 60
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question