Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question about center and text-align

    Hi,

    i have this page.

    login: fer
    password: m
    Note: after login you will be redirected to another page. Then click again the link i mention.

    Im trying to center the form using "margin: 0 auto" but it doesnt work.

    Im also trying to align the labels on the right through "text-aling: right" but it doesnt work..

    Any help?

    Regards

    Javi

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,737
    Thanks
    22
    Thanked 1,836 Times in 1,820 Posts
    Hello tirengarfio,
    After I log in the page that comes up is frontend.php
    There are 2 links on that page -
    symfony
    and Learn more...

    I don't think either one of those links are your centering problem.

    To center an element you need 3 things:
    1. a DocType Declaration
    2. an element with a width
    3. that elements left/right margins set to auto
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi, after enter to that page with two links that you mention, click again the link of my first post.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,737
    Thanks
    22
    Thanked 1,836 Times in 1,820 Posts
    You have margin: 0 auto; on #formulario_edicion. Go back to my first reply and see what requirement is missing.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    tirengarfio (03-24-2010)

  • #5
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks!, now it works.

    Could you tell me why the "text-align: right" for the labels doesnt work?

    Javi


  •  

    Posting Permissions

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