Solved

Horizontal Align 3 divs

Posted on 2014-12-31
4
120 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
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 …

839 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