Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


help with centering



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
msanitanash



Joined: 03 Mar 2008
Posts: 9

PostPosted: Sun Mar 09, 2008 8:16 pm    Post subject: help with centering Reply with quote

These are in a table I am trying to get these two center on the page
they are the order button and the reset button on my form. Just cant figure out how to get them center
<input type="submit" value="Place Your Order Now!" />

<input type="reset"value="Reset Your Order"/>
</td>
Back to top
View user's profile Send private message
instinct46



Joined: 27 Mar 2007
Posts: 37
Location: St Helens, England

PostPosted: Mon Mar 10, 2008 11:38 am    Post subject: Re: help with centering Reply with quote

<DIV align="center">

<input type="submit" value="Place Your Order Now!" />

<input type="reset"value="Reset Your Order"/>

</DIV>

</td>
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
msanitanash



Joined: 03 Mar 2008
Posts: 9

PostPosted: Tue Mar 11, 2008 3:51 pm    Post subject: Re: help with centering Reply with quote

This did not work
Back to top
View user's profile Send private message
killer-kurt



Joined: 12 Mar 2008
Posts: 10
Location: Wales UK

PostPosted: Wed Mar 12, 2008 2:17 pm    Post subject: Re: help with centering Reply with quote

Well my friend that should work. If not then you are doing something wrong. Alternativly you could try,

Code:
<center>
<input type="submit" value="Place Your Order Now!" />
<input type="reset"value="Reset Your Order"/>
</center>


or even do it in your TD tag:

Code:
<TD align="center">
<input type="submit" value="Place Your Order Now!" />
<input type="reset"value="Reset Your Order"/>
</TD>


But the div tag should work. They are all tried and tested and work fine.
Back to top
View user's profile Send private message Visit poster's website
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 627
Location: Cebu City Philippines

PostPosted: Thu Mar 13, 2008 1:53 am    Post subject: Re: help with centering Reply with quote

msanitanash, I suggest you use the second one provided by killer-kurt.

@Killer-kurt
You should not be advocating the user of <center> tag. It's a deprecated HTML element.
Please see reference:
http://www.codehelp.co.uk/html/deprecated.html
http://www.highdots.com/css-editor/articles/css_equiv.html
http://www.netmechanic.com/news/vol6/beginner_no11.htm
Back to top
View user's profile Send private message Yahoo Messenger
DDragon
50+ Club


Joined: 20 Jun 2007
Posts: 90
Location: Australia

PostPosted: Thu Mar 13, 2008 12:57 pm    Post subject: Re: help with centering Reply with quote

could use CSS to do it all for you.... but i would agree with killer (not about using <center> but putting it with the <td> tag
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
killer-kurt



Joined: 12 Mar 2008
Posts: 10
Location: Wales UK

PostPosted: Thu Mar 13, 2008 4:09 pm    Post subject: Re: help with centering Reply with quote

rangana wrote:
msanitanash, I suggest you use the second one provided by killer-kurt.

@Killer-kurt
You should not be advocating the user of <center> tag. It's a deprecated HTML element.
Please see reference:
http://www.codehelp.co.uk/html/deprecated.html
http://www.highdots.com/css-editor/articles/css_equiv.html
http://www.netmechanic.com/news/vol6/beginner_no11.htm


Yes your right and i dident know that. Here is the replacement but already suggested!

Code:
<div style="text-align:center">
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap