I find myself in a perplexing situation
My attempt to insert a button into a div with a specified width has hit a roadblock
$('#main').append('<button id="hello" type="button" style="width:100px">Click Me!</button>');
Despite my efforts, I am unable to alter the width as desired
$("#main").prop({ width: '300px'});
Various attempts using .css, .attr, and .width for adjusting the width have all failed. The root cause remains elusive even after extensive online research. Any assistance would be greatly appreciated.