wahsaga: Input mit width:100% ist zu breit

Beitrag lesen

hi,

Das Problem: Das Textfeld mit seinen 100% ist breiter als das umschließende div, es ragt über dessen Rand hinaus und zwar genau um die 70px des Texts links davon.

Natürlich, 100% sind 100%. Und 100% plus 70px sind 100% plus 70px.

<span style="overflow: hidden; width: 70px; max-width: 70px;
                     float:  left;">
          <p style="margin: 0px; padding: 0px;">Text</p>
        </span>

P hat übrigens nichts in Span verloren.

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }