www.webdeveloper.com
Results 1 to 4 of 4

Thread: centering text fields

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    112

    centering text fields

    How do I center text fields? I have this as my main container wrapper:

    Code:
    <div style="margin-left:auto; margin-right:auto; width:960px; text-align:center;">
    all text text, except the fields, are being centered. how do i change that so that they are?

  2. #2
    Join Date
    Apr 2012
    Location
    winston-salem NC
    Posts
    8

    Field text centering

    create a class with text align center and assign it to the fields.

    for example:
    /* CSS */
    .field {
    text-align:center;
    }
    /* End CSS */


    < fieldset class="field">

  3. #3
    Join Date
    Apr 2012
    Posts
    112
    Hm, doesn't seem to work. wondering if it is just my code... is there anything else that I could add to possibly make it work?

  4. #4
    Join Date
    Apr 2012
    Location
    winston-salem NC
    Posts
    8
    can you post the HTML and CSS?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles