Question: Hi I have a spinner, which contains radio button elements. My spinner loads the elements, but everything is invisible. I think you can understand my situation from the image. an I get any suggestions.![enter image description here](https://i.stack.imgur.com/eOyby.png)

This is the code I am using,

```
   String[] reminder={"5 minutes","10 minutes","15 minutes","20 minutes","25                minutes","30         minutes","35 minutes","45 minutes"};
spinnerAdapter = new ArrayAdapter<String>(mContext,
    android.R.layout.simple_spinner_item, reminder);
spinnerAdapter
    .setDropDownViewResource(android.R.layout.simple_list_item_single_choice);
 reminder_spinner.setPrompt("Reminders");
reminder_spinner.setAdapter(spinnerAdapter);
reminder_spinner.setOnItemSelectedListener(new ItemSelect());

```

Answer: 
For IE6 use 

```
body{
text-align:center;
}

```

And your jQuery code will look like

```
$('#center').toggle(function() {
    $('div').css('margin', '0');
    $('body').css('text-align', 'left');
    $(this).text('Center Align')
}, function() {
    $('div').css('margin', '0 auto');
    $('body').css('text-align', 'center');
    $(this).text('Left Align')
});

```

Check working example at <http://jsfiddle.net/jNWYP/1/>
-------------------------------------------------------
This solution works for me in IE6...

```
$('#center').click(function () {
    $('div').toggleClass('center');
});

```

class...

```
.center { margin: 0px auto; }

```

It's also good practice to keep your JS and CSS separate when possible.

Here is my doctype...

```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

```