...

View Full Version : Question about center and text-align



tirengarfio
03-23-2010, 11:27 PM
Hi,

i have this page (http://www.tirengarfio.com/rs/web/frontend.php/miembross/edit/id/1).

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

Excavator
03-23-2010, 11:45 PM
Hello tirengarfio,
After I log in the page that comes up is frontend.php
There are 2 links on that page -
symfony (http://www.symfony-project.org/)
and Learn more... (http://www.symfony-project.org/doc)

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

To center an element you need 3 things:

a DocType Declaration
an element with a width
that elements left/right margins set to auto

tirengarfio
03-24-2010, 02:00 AM
Hi, after enter to that page with two links that you mention, click again the link of my first post.

Excavator
03-24-2010, 02:36 AM
You have margin: 0 auto; on #formulario_edicion. Go back to my first reply and see what requirement is missing.

tirengarfio
03-24-2010, 12:32 PM
Thanks!, now it works.

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

Javi



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum