Question

This may be a silly question, but I am wondering if it's possible to override styles for the upload.aspx dialog to customize the look...not from the upload pages content but form the calling 'parent' page? I don't think it is since I believe that it is a iframe and I assume you can't do this with a iframe but I am not really sure. Have customized look and feel collection of pages I did with ecma/designer but I am stuck with the OOB look of the upload form itself?

To be clear I don't want to mess with the upload page itself because I have read its not a great idea, and I don't want to change functionality, just styles....

Thanks as always

Was it helpful?

Solution

You can inject a css file into that dialog use some code like this:

var myIframe = document.getElementById('myIframeId');    
var link = document.createElement("link");
link.href = "http://example.com/mystyle.css";
link.type = "text/css";
link.rel = "stylesheet";
document.getElementsByTagName("head")[0].appendChild(link);

visit here for detail.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top