...

View Full Version : Textbox not aligning to the right.



bucket
11-07-2009, 06:31 PM
I have tried everything tp align a textbox.

Here is what I am having trouble with.


This is a picture of what I need
http://i.fhqhosting.com/current.bmp

---



<span style="float: left;">
Main News Message:
</span>
<textarea class="theform" name="mainnewsmessage" cols="40" rows="5">You may recognize the Poison Arrow pub and the aquanite from our Guaranteed Content polls. Everything in the Poison Arrow came from in-game suggestions and the forums. And thats not all: beware of aquanites...</textarea>

<hr>
and the css:


<style type="text/css">
input.theform {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.theform {
border:solid 1px #675f39;
padding:4px 2px;
align: right;
}
</style>

Excavator
11-07-2009, 07:09 PM
Hello bucket,
Have you tried floating it?
Like this -

textarea.theform {
border:solid 1px #675f39;
padding:4px 2px;
width: **px; /*need a width*/
float: right;
}

You may need to addy clear:right; or left or both to that. You may also need overflow:auto; in the containing div to clear the floats it holds.

bucket
11-07-2009, 07:12 PM
I have and it totally messes everything up.

Try it yourself.


EDIT:

I have finnaly made it work by adding


<style type="text/css">
input.theform {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.theform1 {
border:solid 1px #675f39;
padding:4px 2px;
margin-left:211px;
}
</style>

to it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum