HTML Error - Background color spills all over the page

  • 1
  • Problem
  • Updated 1 year ago
Using "Insert HTML" (code below), I can get it to function properly EXCEPT that the green background for the table spills all over the entire myemma template/page. Spills into other sections, space, blank space... vexing.


<style>


table {
    border: 3px solid white;
    width: 60%; background-color: #94c948; 

}
a:link
    {color: white;text-decoration: none;}
a:hover
    {color: white;text-decoration: underline;}    
th {
    height: 40px;
}
</style>


<table>
  <tr>
  

      <th style= width:30%;><p style="text-decoration: none; font-family: arial, helvetica, sansserif;font-size: 0.75em; color: white;letter-spacing: 1.5px;font-weight:bold;"><a href="http://www.google.com">RSVP NOW</a></td>
    <th style="font-family: arial, helvetica, sansserif;font-size: 0.75em; color: white;letter-spacing: 1.5px;font-weight:bold;">DEADLINE FRIDAY, JULY 28</th>
  </tr>

</table>
Photo of Pat Brown

Pat Brown

  • 1 Post
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Grey Stepp

Grey Stepp, Support Team Manager

  • 1700 Posts
  • 135 Reply Likes
Hi Pat, 

Thanks so much for reaching out! 

It looks like in the code there you're using CSS Styling.  When using the HTML block, you don’t want to add in CSS, since there’s already CSS built into the template.  So any styling you want to do for the table will need to be done in-line.  That should clear up that issue.  Give it a try and let me know how it goes!

Let me know if you have any questions going forward on that!  

- Grey