The W3Schools site is great for any of this stuff. http://www.w3schools.com/

Centering things can get a bit tricky. For the most part, I just stopped
centering things. I do center elements sometimes though. So there are a
couple of ways to do this. I will list the legal way, then a way that works
most of the time, but I'm not sure how legal it is.

This is the legal and technical way, but you HAVE to include a WIDTH. You
can also substitute "margin: 0 auto" with "margin-left: auto; margin-right:
auto". That is the way the W3 example is, but I see this method more often.

<div style="margin: 0 auto; width:150px">
<input type="button" value="Button 1" />
<input typ="button" value="Button 2" />
</div>

This method might not be legal, but it seems to work for the most part. I
haven't had any problems at least.
<div style="text-align:center">
<input type="button" value="Button 1" />
<input typ="button" value="Button 2" />
</div>

With both methods you can take out the style attribute and place it in an
actual CSS file, but for a simple demo this seemed to be the easiest to
show.

--
James R. Perkins
http://twitter.com/the_jamezp


On Mon, Nov 16, 2009 at 08:53, Tom Deskevich <
thomas.l.deskevich@xxxxxxxxxxxxx> wrote:

James : Do you recommend any resource for this? Specifically, how you
position a button using CSS.

I do feel a little better, I do not think I posted the easiest question
ever.

Tom Deskevich.





--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.