Question: I need to enlarge an input field when it's on focus without the containing td enlarging, too. 

Further on both fields should stay on their actual position (have a look on the fiddle, it mooves) and not move up or down (what is caused by the absolute position).

This is my actual state

```
    $('.Bemerkung').focus(function() {
    $(this).attr('size','30');
    $(this).parent().css({'position':'absolute'});
    $(this).css({'position':'absolute'});
})
$('.Bemerkung').blur(function() {
    $(this).attr('size','5');
    $(this).removeAttr('style');
    $(this).parent().removeAttr('style');
})

```

<http://jsfiddle.net/kazuya88/dhy0dxyy/>

Hope you can help me.

Answer: 
It's not too far from what you originally had:

```
$('.Bemerkung').focus(function() {
    oldWidth = $(this).width();
    $(this).attr('size','30');
    $(this).css({'position':'relative'});
    $(this).css({'margin-right':('-'+($(this).width()-oldWidth)+'px')});
})
$('.Bemerkung').blur(function() {
    $(this).attr('size','5');
    $(this).removeAttr('style');
    $(this).parent().removeAttr('style');
})

```

Update: I figured I should add more explanation about what is going on here. This basically detects what the size is before gaining focus, then increases the size and sets the right margin to the difference between the new size and the old size (thus making the renderer see it as the same "width" as before gaining focus). Position:relative is so that the element width will not affect the td width (as long as right-margin is set negative).
Try replacing the javascript with strict CSS.

One thing i did was make the td cell text-align: left. that's the only real difference right now. The reason there is movement when you switch to an absolute position is due to the fact that it's trying to align the elements to the center, but then absolute elements don't get measured or centered.

Here is the CSS.

```
table td{
position: relative;
overflow: visible;
text-align: left;
}

.Bemerkung:focus{
    width: 196px;
    position: absolute;
    z-index: 10000;
}

```

Let me know if you need to text-align: center and i'll look for a different solution.