aligning text in a form with css

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
izzysanime

aligning text in a form with css

Post 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
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

Re: aligning text in a form with css

Post by SusanN »

Can you show us the form or at least the CSS?  It's hard to say without an example.
izzysanime

Re: aligning text in a form with css

Post by izzysanime »

well, i just created it from scratch. 

css
.style2{
text algin: right;
}


  name
 
 
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: aligning text in a form with css

Post by Dr.CSS »

izzysanime

Re: aligning text in a form with css

Post 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
User avatar
tannos
Forum Members
Forum Members
Posts: 109
Joined: Mon Apr 21, 2008 3:50 pm

Re: aligning text in a form with css

Post 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
One thing only I know, and that is that I know nothing.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: aligning text in a form with css

Post 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...
izzysanime

Re: aligning text in a form with css

Post 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
Locked

Return to “Layout and Design (CSS & HTML)”