# Styling Widgets! 11

In all these tests, INPUT should act as a BLOCK element because it is given 'display:block' in the stylesheet.

In the following test case there a centered INPUT element.

In the following test case, there is the same INPUT but this time it is next to a float. The INPUT should be in the same place!

I float.

This problem does not seem to occur with left floated images:

I float.

Similarly, if we right align the INPUT, the INPUT does not go under the floated block as it should:

I float.

In this case, though, the problem does appear for the left case:

I float.

Prev Next