jquery - Div alignment inside a <th> -


hello have problem div alignment inside .

i'am made small fiddle show problem. https://jsfiddle.net/jpq7xzoz/

i use jquery tablesort-plugin , display second div buttons in header. e.g. search icon show/hide filter.

<th class="header" style="text-align: center">      <div class="header-inner">patchlevel</div>      <div class="header-inner-filter">           <button class="filterbutton"></button>      </div> </th> 

but when columns have different size, table use autosize cols , div button wrap new line. head-description should @ same line button , background-image.

when take button in same div description @ same line can't set button @ right column.

i try use different display-styles , withe-space property no success.

what do?

thx felix

hei! try use negative margin. example:

.header-inner {margin-right:50px;} .header-inner-filter {margin-left:-40px;} 

adjust 50px , -40px wish.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -