www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > HTML

    HTML Discussion and technical support for building, using and deploying HTML sites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-08-2009, 03:24 AM
    conrad4784 conrad4784 is offline
    Registered User
     
    Join Date: Feb 2008
    Posts: 37
    centering content of the website

    I have started to build a site and need a little help centering the content. I tried using a <div> with style="margin-left:auto; margin-right:auto" with no luck in IE and firefox. I find it odd because when I style the <div> with a pixel amount it will move the content over by that amount specified. Ex: margin-left:50px. Just need help moving the content from the left to the center. I have included the files any help would be greatly appreciated. Thank you
    Attached Files
    File Type: zip website.zip (53.5 KB, 10 views)
    Reply With Quote
      #2  
    Old 11-08-2009, 03:52 AM
    Kor's Avatar
    Kor Kor is offline
    Red Devil Moderator
     
    Join Date: Dec 2003
    Location: Bucharest, ROMANIA
    Posts: 11,142
    To apply the margins auto values your div must have a certain width. Has it?

    Last edited by Kor; 11-09-2009 at 03:57 AM.
    Reply With Quote
      #3  
    Old 11-08-2009, 06:03 PM
    conrad4784 conrad4784 is offline
    Registered User
     
    Join Date: Feb 2008
    Posts: 37
    ur right

    WOW im dumb, thank you I definitely forgot to add the width attribute. It worked when I set it. Thank you again
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:18 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.