How can I hide the white box area and scroll bar surrounding my Power BI graphic in my Webflow site?

Published on
September 22, 2023

To hide the white box area and scroll bar surrounding your Power BI graphic in your Webflow site, you can use custom CSS styling. Here are the steps to achieve this:

  1. Select the element that contains your Power BI graphic in the Webflow Designer.
  2. Go to the Styles tab on the right-hand side panel.
  3. Scroll down to the Custom Code section and click the </> icon to open the Custom Code Editor.
  4. In the Custom Code Editor, add the following CSS code:
.selector {  overflow: hidden;}

Make sure to replace .selector with the appropriate class or ID of the element containing your Power BI graphic.

  1. Click outside the Custom Code Editor to close it.

This CSS code sets the overflow property of the element to hidden, which prevents the scroll bar from being visible and hides any content overflowing the element. By applying this style, the white box area and scroll bar surrounding your Power BI graphic will not be visible on your Webflow site.

Remember to publish your site for the changes to take effect.

Additional Tips:

  • If you want to hide the scroll bar but still allow scrolling, you can use the ::-webkit-scrollbar selector and apply custom styles. For example:
.selector {  overflow: auto;}.selector::-webkit-scrollbar {  width: 0.5rem;  opacity: 0;}.selector::-webkit-scrollbar-thumb {  background-color: #000;}

This code hides the default scroll bar and provides a custom scroll bar with a black thumb.

  • Be cautious when applying the overflow: hidden; property, as it will cut off any content that exceeds the boundaries of the element. Make sure to adjust the dimensions and content accordingly.

Example:

If your Power BI graphic is within a div element with the class name .powerbi, the CSS code to hide the white box and scroll bar would be:

.powerbi {  overflow: hidden;}

Related Questions:

  1. How do I hide scroll bars in Webflow?
  2. What is the CSS overflow property and how can I use it in Webflow?
  3. Can I customize the scroll bar appearance in Webflow?