SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast bzcastell's Avatar
    Join Date
    Jan 2012
    Location
    San Diego
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why isn't it CENTERING?!!?!

    http://noviabellaphotography.com/

    The contact and investment page are not centering and I can't for the life of me figure it out. Anyone? I hate my life right now.

    Thank you very much.

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,290
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    What do you mean it's not centering?

    Your scrollable element is centered - just move the scrollbar to the center to see. Your imageFlow container is set to 100%, and your images inside the container are each set to a specific position (bad idea, IMHO - especially using the inline css).
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,750
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    If you mean to center hte page via float:center, that property doesn't exist. I suggest validating your page, but along with what Dave said, your page has 100% width and there's really nothing for it to center against.

    I'm not a fan of how you coded thist page, as it has many errors and if you want a QUICK FIX, this is what you'd have to do. On "#page_content_wrapper" change the margins to this.

    Code:
    #page_content_wrapper{margin:0 auto;}
    Auto horizontal margins are the universal way to center block content across the parent/screen. It requires a width (which you have set) and the auto margins. Very simple fix.

    Though please validate your page and consider restructuring it. It's not a very pretty sight . Though it's your choice.

    Off Topic:

    Yes before any Sitepoint oldies say so, I know float:center has been "invented"
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You also have a typo in your css for the wrapper div.

  5. #5
    <title class="lol"> bronze trophy TehYoyo's Avatar
    Join Date
    Feb 2012
    Location
    Northeast Chicago Suburbs
    Posts
    806
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Conquer View Post
    You also have a typo in your css for the wrapper div.
    It'd probably be helpful if you actually told us what the typo is.

    ~TehYoyo

  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,750
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TehYoyo View Post
    It'd probably be helpful if you actually told us what the typo is.

    ~TehYoyo
    Shouldn't be hard to find. Completley unrelated (though my validation point would cover all these typos) issue, although if you go to the wrapper div in the CSS like he states...
    Code:
    #wrapper
    {text-aign:center;
    	width: 100%;
    }
    aign.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  7. #7
    SitePoint Enthusiast bzcastell's Avatar
    Join Date
    Jan 2012
    Location
    San Diego
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the input,. I appreciate it. I will validate asap.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •