none
Align Text issue

    Question

  • I Have a form, that is used. In Internet Explorer the form renders correctly. However in Chrome and Mozilla, the text is incorrectly formatted. See image. I have a code that is used. See below. Can someone assist?

    <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    	$("#WebPartWPQ2 table table tr>td>div:contains('Tech Notes')").closest('tr').hide();
    	$.ajax({
    		url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getByName('IMOMembers')/Users?$filter=Id eq " + _spPageContextInfo.userId,
    		method: "GET",
    		headers: { "Accept": "application/json; odata=verbose"},
    		success: function(data){
    			if(data.d.results.length!=0){
    				$("#WebPartWPQ2 table table tr>td>div:contains('Tech Notes')").closest('tr').show();
    			}
    		}
    	});
    });
    </script>
    
    <style>
            .alignCenter {
                text-align: -moz-center!important;
            }
            .alignRight {
                text-align: -webkit-center!important;
            }
    </style>


    Lee Mossolle

    Thursday, May 2, 2019 12:00 PM

All replies

  • Hi,

    Could you try to add proper width style to the td/tr element and then check.

    If issue exists, try to share more details(where the script you used for customization) for this issue so we could try to research/test.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, May 3, 2019 2:24 AM
  • Hi,

    I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.

    You can mark the helpful post as answer to help other community members find the helpful information quickly.

    You can also share your own solution here and mark it as answer, so it may help others who has similar requirement.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, May 17, 2019 7:45 AM