Solved

Centering Three Images

Posted on 2014-10-18
6
84 Views
Last Modified: 2014-10-18
I have been playing with this for awhile now.  I am trying to center these three images with a space between each.  I tried one big div with each image inside a div.  Did not work.  Adding a div also interrupted the background fade as well.  How can I do this?  Thank you.  File attached.

www.davidschure.com
index.html
0
Comment
Question by:DS928
  • 3
  • 2
6 Comments
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Where are they supposed to be
0
 
LVL 17

Expert Comment

by:selvol
Comment Utility
Like already said.
Where>\?


Add this to these lines class="displayed"

   <img src="images/OMG.jpg" width="240"  height="199" class="displayed"/>
       <img src="images/OMG.jpg" width="240" height="199" class="displayed"/>
       <img src="images/OMG.jpg" width="240" height="199" class="displayed"/>

Open in new window


ad this right above </style>
IMG.displayed {
    display: block;
    margin-left: auto;
    margin-right: auto }

Open in new window


There is a Vertical method

Selvol
0
 

Author Comment

by:DS928
Comment Utility
Right underneath the logo.  In a horizontal line.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
Place them in a div with an id or class e.g.

<div id="three_images" style="width: 740px;">
<img width="240" height="199" align="left" src="images/OMG.jpg">
<img width="240" height="199" align="middle" src="images/OMG.jpg">
<img width="240" height="199" align="right" src="images/OMG.jpg">
</div>

Open in new window


Add this css change the ID to whatever you use

#three_images img:not(:last-child) {
    margin-right: 10px;
}

#three_images {
    width: 740px;
    margin:auto
}

Open in new window


Remove your logo css class
0
 

Author Closing Comment

by:DS928
Comment Utility
Perfect.  Thank you Gary.
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Change #three_images to width:780px

Width of the three images plus the margin on the first two images.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 24
Ajax control editor 4 30
CSS not updating in FF and ipad 6 36
Problem to page 4 16
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

763 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

9 Experts available now in Live!

Get 1:1 Help Now