Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to center an image (CSS)

Posted on 2013-01-10
4
Medium Priority
?
435 Views
Last Modified: 2013-01-10
Please go to www.mwebdev.com/ls.html. Take a look at the logo at the top, which is contained within a div called top-row. I need to make the logo centered. I tried adding text-aling:center to #top-row, but this did not work. Please advise. Thanks!
0
Comment
Question by:isaacr25
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 2000 total points
ID: 38765830
Take out the float on the .logo class on line 46 of style.css, and add width: 382px; height: 245px; margin: 0 auto;
0
 

Author Comment

by:isaacr25
ID: 38765892
Your post made me realize I hadn't removed the float tag! All I did was remove it and the logo centered. Thanks for your suggestion!
0
 
LVL 17

Expert Comment

by:OmniUnlimited
ID: 38765964
Thanks, but you really ought to consider implementing the other changes as well, just to be safe across browser platforms.
0
 

Author Comment

by:isaacr25
ID: 38766068
Thanks. I will do that.
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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…

610 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