Solved

Side By Side <Div>

Posted on 2014-01-22
5
230 Views
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.

http://www.mediascrubber.com/skip.html
0
Comment
Question by:DS928
  • 2
  • 2
5 Comments
 
LVL 34

Accepted Solution

by:
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...

HTH,
Dan
0
 
LVL 4

Assisted Solution

by:ravikantninave
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>
0
 

Author Comment

by:DS928
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

0
 
LVL 4

Expert Comment

by:ravikantninave
ID: 39804661
margin-top:- some value
0
 

Author Comment

by:DS928
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

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now