Solved

Centering Three Images

Posted on 2014-10-18
6
90 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
ID: 40389572
Where are they supposed to be
0
 
LVL 17

Expert Comment

by:selvol
ID: 40389594
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
ID: 40389611
Right underneath the logo.  In a horizontal line.
0
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.

 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40389617
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
ID: 40389620
Perfect.  Thank you Gary.
0
 
LVL 58

Expert Comment

by:Gary
ID: 40389623
Change #three_images to width:780px

Width of the three images plus the margin on the first two images.
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

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
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 …

911 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

20 Experts available now in Live!

Get 1:1 Help Now