Page 1 of 1

aligning text in a form with css

Posted: Thu Jul 03, 2008 2:29 pm
by izzysanime
Hi,

I'm trying to align the text that is inside the form field to the right side of the field using css.  But the text still stays left align.  I added a color setting just to make sure my css connected to the form field properly and it loads the color.  What am I do wrong?

Thanks,
Josh

Re: aligning text in a form with css

Posted: Fri Jul 04, 2008 11:00 am
by SusanN
Can you show us the form or at least the CSS?  It's hard to say without an example.

Re: aligning text in a form with css

Posted: Fri Jul 04, 2008 3:55 pm
by izzysanime
well, i just created it from scratch. 

css
.style2{
text algin: right;
}


  name
 
 

Re: aligning text in a form with css

Posted: Fri Jul 04, 2008 8:29 pm
by Dr.CSS

Re: aligning text in a form with css

Posted: Fri Jul 04, 2008 11:38 pm
by izzysanime
thats awesome, but how do i make it work for a form that is just straight html and css, for this form, i was not using formbuilder, just a normal form inside CMSMS.

I see that is set to align right, but Im using the same code but its not aligning to the right. hmm

Thanks,
Josh

Re: aligning text in a form with css

Posted: Sat Jul 05, 2008 4:50 am
by tannos
izzysanime wrote: I see that is set to align right, but Im using the same code but its not aligning to the right. hmm
give us the link  or the code you used otherwise we will not be able to help you

Re: aligning text in a form with css

Posted: Sun Jul 06, 2008 4:01 am
by Dr.CSS
Supposed to be what he has in his post...

I think his problem is that he is trying to target his input box as tho it was text...

Re: aligning text in a form with css

Posted: Tue Jul 08, 2008 8:54 pm
by izzysanime
The code is right there, towards the top.

I am trying to target as text.  but it appears that in that post link you gave me, it was just altering the form builder plugins css.

I'm trying to align the text that the user creates when filling out a form, im trying to align it to the right.

Thanks,
josh