[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

How to center an image (CSS)

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
isaacr25
Asked:
isaacr25
  • 2
  • 2
1 Solution
 
OmniUnlimitedCommented:
Take out the float on the .logo class on line 46 of style.css, and add width: 382px; height: 245px; margin: 0 auto;
0
 
isaacr25Author Commented:
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
 
OmniUnlimitedCommented:
Thanks, but you really ought to consider implementing the other changes as well, just to be safe across browser platforms.
0
 
isaacr25Author Commented:
Thanks. I will do that.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now