title: Is it possible to add custom CSS to a WebView in Xamarin using ONLY ONE stylesheet in my Assets folder?
body: <p>I've seen multiple <a href="https://stackoverflow.com/questions/46938928/i-need-to-load-html-and-css-different-from-android-and-ios-from-a-file-and-dis">tutorials</a> adding a GetBaseUrl separately for IOS and Android, but they don't answer my question. I was wondering if there is  no other way to add custom CSS to a webview and only use 1 stylesheet (default.css). The reason why I want to do this is because my stylesheet is identical for both IOS and Android and contains little styling.</p>
  
  <p>This is what I've tried:
  I have a WebView:</p>
  
  <pre><code> &lt;WebView.Source &gt;
          &lt;HtmlWebViewSource Html="{Binding Data.Content}" /&gt;
      &lt;/WebView.Source&gt;
  </code></pre>
  
  <p>The Source of this WebView is a string that looks like this:</p>
  
  <pre><code>string  contentString =   @"&lt;html&gt;
                              &lt;head&gt;" +
                              "&lt;link rel='stylesheet' href='default.css'" 
                              "&lt;/head&gt;" +
                              "&lt;body style='text-align:left;background-color:white;font-size:16px;margin:0;'&gt;" +
                              value +
                              "&lt;/body&gt;" +
                              "&lt;/html&gt;";
  </code></pre>
  
  <p>The <strong>default.css</strong>  file mentioned above is in my Assets folder and has Build Action EmbeddedResource, located in the root directory of my project:</p>
  
  <p><a href="https://i.stack.imgur.com/M0SiU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M0SiU.png" alt="e"></a></p>
  
  <p>Can anyone help? Thanks in advance.</p>