CRM 2011 – Removing the Borders in an Embedded Web Page

I read this article today on embedding a web page in CRM 2011.

This is interesting because it is something I might need to do this week, so to look at a good example is very useful.

the article splits up the linking of pages into two distinct pages you can link to in CRM

  • Linking to an internal site where you are able to change some CSS (Part 1)
  • Linking to another website where you are unable to modify the HTML (Part 2)

This broadly speaking is probably the two different types of web pages you are going to link to.

The example also shows a useful way to remove the border from the page, which makes it fit into the application a bit more smoother

So to remove the border, we simply need to modify the CSS of our HTML file.

<style type=”text/css”>

html, body {
border: none;
}
</style>

They also show how to remove the border from the external site as well

<html>
<head>
<title>Bing Search</title>
<style type=”text/css”>

html, body {
border: none;
margin:0;
overflow-y: hidden;
overflow-x: hidden;
}

</style>
</head>
<body>

</body>
</html>

it was a good article and whilst you are there you should check out other articles on the blog because it has loads of useful/practical articles.

Advertisements