html - How to position/size out a div from a td without stretching the td itself? -


i add div inside td, , position/size out div td (horizontally or vertically or both). problem is, example if add top margin div, whole row of table height increasing include div.

is there way leave td's height , width intact , position/size div outside td? div must remain child element of td.

the same question 'a' element. not sure answer different div, or solution (if any) same div , 'a'.

thanks in advance

give position: absolute child element. , display: inline or display: inline-block if block element div (not necessary a tag).

and using top , left, set position of child element. (give negative values)


Comments