#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    271
    Rep Power
    0

    Centering website in firefox


    This probably is an easy thing but I have tried a lot of things and I cant center the website on firefox.

    it looks good on internet explorer. When you open the website it positions itself on the center and even when you resize the browser. This is how I want it to behave in Firefox.

    The site is temporary on:
    http://www.danielyanez.com

    and the css is on:
    http://www.danielyanez.com/Stylesheet.css

    I appreciatte any help in advance and I hope someone can give me a hand, thanks !!!!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    USA
    Posts
    349
    Rep Power
    11
    In your main container than encompasses everything else say:

    Code:
    margin-left: auto;
    margin-right: auto;
    Chaos Coding
    Did I help you out? Show some love with the button
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    271
    Rep Power
    0
    Thanks a lot, that made the trick. I appreciate you took the time to respond. Thanks !!

    Now that we are on it, do you know anything about how to force
    :active and :focus from temporary states to permanent effects in safari ? basically make them behave just like they behave on internet explorer. As of right now, if you go to the website using safari, you will have to press and hold the mouse button in order to see the image. is there any hack ? or fix to do this ? thanks
  6. #4
  7. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    Both :hover and :active are temporary states. :hover only occurs while the mouse cursor is over the element. :active only occurs while the mouse button is being clicked or the enter key is being pressed.

    Perhaps you're thinking of the :focus state?

    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Worked for me


    Originally Posted by acemaverick1381
    In your main container than encompasses everything else say:

    Code:
    margin-left: auto;
    margin-right: auto;
    Ace, you are indeed an ace. Thanks for such a simple solution. You rock.

IMN logo majestic logo threadwatch logo seochat tools logo