Jump to content

Trying to make Bootstrap buttons completely fill the TD which contains them

Go to solution Solved by mongoose00318,

Recommended Posts



I have tried using bootstraps h-100 and w-100 to make it work as well as other things. I wont know the row height for each page so I need the buttons to fill the container TD. 


Why won't bootstraps h-100/w-100 classes work?

Link to post
Share on other sites
  • Solution



I got it working with this:

		function updateTableAfterSubmit() {
			table.ajax.reload( function (json){
			}, false );

		function auto_btn_height_width() {
			$('td.mfg-view-cols').each(function() {
				tdWidth = $(this).width();
				tdHeight = $(this).height();

				$(this).find('button').css({'width': tdWidth, 'height': tdHeight});


Then just had to make sure I identified the right events to do call backs on. Works great now.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.