Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Trying to center 2 images

Posted on 2013-06-05
3
Medium Priority
?
278 Views
Last Modified: 2013-06-05
I am trying to center the 2 images in the center section of this page:
http://roofgenius.com/RoofCalcWriter/test.asp
image65.jpg and image67.jpg
How can i do this?
0
Comment
Question by:isnoend2001
3 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 2000 total points
ID: 39224643
Add with in div.inline

div.inline {
    float: left;
    width: 50%;
}

Open in new window

if still error
try adding
 text-align:center;
also
0
 

Author Closing Comment

by:isnoend2001
ID: 39224659
Thanks that works
0
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39224660
wrap the two images in a div give it a defined width and then add...
margin: 0 auto;

Open in new window

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

876 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