Solved

Side By Side <Div>

Posted on 2014-01-22
5
232 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

770 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