Welcome Guest, Not a member yet? Register   Sign In
form centering
#1

[eluser]Unknown[/eluser]
Hello all,

i am trying to center a form using this format

<?=form_open('tester/comment_insert');?>



<p>&lt;input type="text" name="author"/&gt;</p>
<p>&lt;input type="text" name="author" /&gt;</p>
<p>&lt;input type="submit" value="Submit"/&gt;</p>

how do i do that. I tried using this approach:

$attributes = array('class' => 'email', 'align' => 'center');

echo form_open('tester/comment_insert', $attributes);

but it still isnt working

what am i donig wrong pls help me

nkor
#2

[eluser]johnwbaxter[/eluser]
just wrap it in a div that is centered? I didn't know you could center forms like that.
#3

[eluser]Unknown[/eluser]
http://ellislab.com/forums/smileys/#
cool smile


Thanx a lot
it worked

nkor




Theme © iAndrew 2016 - Forum software by © MyBB