Iframe background image or color

jamarsch
Kilo Explorer

I would like to either have a background image that displays in an Iframe or change the background color of an iframe from white to some other color

16 REPLIES 16

exactly right, so if it is a ui macro, ui page, or a dynamic content block, you would want to use something like the following:



BODY{


        background-color: #F00 !important;


}



Putting this style inside of the element in the frame should not affect the parent frame. Also, placing important at the end may be necessary in order to stop the default style that is applied by servicenow.


Hi Travis



Thank you for the help you have given me so far. Let me try to explain what I am trying to do. I wish I could send you a screen shot but my system is a closed network. I have a CMS web page it is broken down as such. a header and footer. On the right side is a column 35% wide it has a 5 button navigation screen. Each button displays its' data in an Iframe that takes up 65% of the screen.. So when a person presses one of the buttons data within the iframe changes. What I would like to be able to do is insert a semi-transparent background image within the iframe that data dispalys over. This image is a company logo. I am not sure how to do this within the ServiceNow software. Should I do the insert on each of the iframes, and if so how would the code look since I do not have a tag or some how reference the iframe in the css and tell it how display the image. I hope you can help here. I hope I have been as clears as possible




John Marsch


Can you give an example of the iframe content? Is it a list? Is it a ui page? If possible, please give the value in the URL field for the iframe


Thank you for the help you have given me so far. Let me try to explain what I am trying to do. I wish I could send you a screen shot but my system is a closed network. I have a CMS web page it is broken down as such. a header and footer. On the right side is a column 35% wide it has a 5 button navigation screen. Each button when pushed displays its' data in an Iframe that takes up 65% of the screen.. So when a person presses one of the buttons data within the iframe changes. What I would like to be able to do is insert a semi-transparent background image within the iframe that data dispalys over. This image is a company logo. I am not sure how to do this within the ServiceNow software. Should I do the insert on each of the iframes, and if so how would the code look since I do not have a tag or some how reference the iframe in the css and tell it how display the image.   I hope you can help here. I hope I have been as clears as possible. The data that is displayed is general information no forms or database information.


 


John Marsch


the question is, how are you linking to that iframe source?