set width using jquery as fit content code example Example: jquery set width $(".example").width("px");