Solved

How to center an image (CSS)

Posted on 2013-01-10
4
339 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
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

708 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

15 Experts available now in Live!

Get 1:1 Help Now