Solved

Horizontal Align 3 divs

Posted on 2014-12-31
4
119 Views
Last Modified: 2014-12-31
Can someone help me align the three divs in the header on this site: http://rosemountata.com/new_site/default.asp
Rosemount ATA


The first two are fine but the far right one is not.  If you could explain the concept that would be awesome as well.

Thanks!
0
Comment
Question by:Bob Schneider
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 40525643
Change the parent block div's to display:inline-block and remove the margins.

Then just adjust the widths so they fit the full width.
0
 

Author Comment

by:Bob Schneider
ID: 40525675
That helped a great deal...thanks.  But the table on the right is still sitting a little low.
0
 
LVL 18

Assisted Solution

by:nap0leon
nap0leon earned 250 total points
ID: 40525831
I find "float:left" works well in these situations.
<div style="padding: 0px 0px 0px 10px; text-align: left; width: 440px; float: left; display: inline-block;">
<div style="font-size: 0.75em; color: rgb(0, 0, 0); float: left; display: inline-block; width: 160px;">
<div style="width: 180px; font-size: 0.75em; color: rgb(255, 255, 255); margin-left: 15px; float: left; display: inline-block;">

Open in new window

0
 

Author Closing Comment

by:Bob Schneider
ID: 40525927
Very helpful!  Thank you!!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Set differnt row widths in a table. 3 21
paypal ipn url 5 55
Select case on click 3 14
Writing comments on <p></P> or paragraph 2 10
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

786 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