1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can i move the login/sign up tab to the centre of the browser window?

Discussion in 'XenForo Questions and Support' started by Alex, Mar 5, 2011.

  1. Alex

    Alex Active Member

    As title really, I want to move the login/sign up tab to the centre of the browser window as I want to see what it looks like as I think it'll make it easier for my members to find when we do eventually move over.

    I've had a look in the templates for it, but I'm not sure what I need to change. Anyone able to help?
  2. Nasr

    Nasr Well-Known Member

    look into this "#loginBar #loginBarHandle " I'm not sure which template. You can do a template search and it'll come up. Perhaps change the margin-right to something appropriate to align center.
  3. Alex

    Alex Active Member

    Yeah I found that, but not sure what I can change it to as really want it centred, but our users have a variety of screen resolutions, so a px definition wouldn't work on all would it?
  4. Nasr

    Nasr Well-Known Member

    you probably would have to play with it to make it work as you like.
  5. Alex

    Alex Active Member

    I'll have a try at that over the weekend when I have some free time, I will report back on how it turns out
  6. Nasr

    Nasr Well-Known Member

    good luck
  7. Alex

    Alex Active Member

    Sorted how to do it now, thanks for your help.

    For anyone else wanting to know how to do it i used the above code:

    margin: auto;
    left: 0;
    right: 0;
    Had to remove the margin-right: 20px; line though.

    And then added in

    width: 85px;
    This gave the following results

    centre login.jpg

    Hope this helps others who want to do the same thing :)
    Nasr likes this.

Share This Page