- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
CSS code for Custom HTML modules
SOLVEAug 15, 2017 4:12 AM
Hi,
First post and fairly dumb question as I'm not a coder - just a copywriter managing Hubspot for our client! 🐵
We've had a custom HTML header and footer designed for the client's standard email template. The HTML designer has included all css code within the main HTML file. The HTML is uploading fine to the template and works great in desktop view, but Hubspot is stripping out the CSS which specifies how to render in mobile view. Hubspot Tech Support said the CSS code should go in the 'Edit head' section, which we did but it didn't have the desired effect! Be glad of any possible steering on where CSS code related to Custom HTML modules should be inserted.
The CSS code that the HTML designer has created is as below. Be glad to know if there are missing elements from the code which are causing the problem.
Thanks a lot.
----------------------------------------
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Aug 15, 2017 7:43 AM
Just to confirm that I've private messaged the preview link to you as it seems to cause the message to get cut out if I include it here on the topic conversation.
Thanks very much for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
body{-webkit-text-size-adjust:none; margin:0px !important;}
.ReadMsgBody{width:100%;}
.ExternalClass{width:100%;}
tr, td {line-height:90%}
@media only screen and (max-width: 580px) {
*[class].yahoo_fix{display:block;}
*[class].fl{float:left !important;}
*[class].wr{display:block !important;}
*[class].h{display:none !important;}
*[class].border { margin:0px 3px 0px 3px !important}
*[class].no-bg{ background:none!important}
*[class].txt-center{ text-align:center!important}
*[class].width100per{width:100% !important;}
*[class].width15{width:15px !important;}
*[class].width135{width:135px !important;}
*[class].width260{width:260px !important;}
*[class].width270{width:270px !important;}
*[class].width300{width:300px !important;}
*[class].height2{height:2px !important;}
*[class].height10{height:10px !important;}
*[class].height15{height:15px !important;}
*[class].height20{height:20px !important;}
}