http://outsourceage.com

  • Home
  • About Us
  • Portfolio
  • Blog
  • Services
  • Contact Us

Archive for the ‘Compatibility’ Category

internet explorer css body center

Wednesday, June 9th, 2010

Internet Explorer hold the largest share in market and when it comes to deploying a website. Compatibility with IE matters more. there has been a problem I faced so many times. wondered how come MSN.com is not centered on IE unlike other browsers.

however generated this little trick that normally works.

body {
text-align: center;
min-width:500px;
}
#wrapper {
text-align: left;
width: 500px;
margin-left: auto;
margin-right: auto;
}

 

Explanation


body {
text-align: center; /* MSIE 5 doesn't center based on auto left/right margins,
but 'text-align:center' does center top-level divs: */
min-width: 500px; /* Specify a min-width for the body as wide as the 'wrapper'
element itself. This prevents negative (i.e. inaccessible)
left-margins in narrow browser windows when using
Navigator 6+/Mozilla on Win32: */
}
#wrapper {
text-align: left; /* Reset alignment to compensate for 'text-align:center': */
width: 500px; /* Specify the width of the element. This should be the same
as 'body min-width': */
margin-left: auto; /* Set left and right margins to auto, thus centering the
element in the containing (body) tag: */
margin-right: auto;
}

Posted in Compatibility, HTML CSS | No Comments »

Topics

  • Categories
    • Adobe Photoshop
    • Compatibility
    • Dreamweaver
    • HTML CSS
    • HTML5
    • JS JQuery Ajax
    • News
    • OSCommerce
    • PHP MY SQL
    • Psd to wordpress
    • Search Engines
    • SEO
    • Testimonial
    • wordpress
  • Our Portfolio - The stuffs what we did

    PSD to Wordpress, OS Commerce, Wordpress Plugin Development. Please, browse our portfolio.

    View Our Portfolio

  • What our customers say about us?

    Read our customer testimonials to find out why our clients keep returning to Glue for their projects.

    View Testimonials

Wordpress website design, Search Engine Optimzation, Theme Customization, plugin development

Facebook LinkedIn Twitter Flickr Odesk eBlogger

PSDtoWP Coversion

We convert your PSD design to a fully W3C standards compliant, cross browser compatible with WordPress theme, and that search engines love traffic would find its way to your website!

We ensure the proper usage of h1, h2, h3, alt, title and other html tags durring PSD to WP Conversion, timely delivery is what makes us apart of the competition.

Sitemap

  • Home
  • About Us
  • Services
  • Portfolio
  • Testimonials
  • Contact Us
  • Sitemap

Explore

  • Delicious
  • Digg
  • StumbleUpon
  • Ask
  • CSS Beauty
  • CSS Mania
  • slashdot.org
  • Smashing Magazine
  • Web 2.0
  • Joomla
  • WordPress
  • Valid XHTML
  • Valid CSS

© 2005-2011 All Rights Reserved. Outsourceage Tel: +9233 666 555 74. Email: info@outsourceage.com

Privacy Policy. Terms of use. Valid XHTML & CSS