6

I m in a situation where i need to set some text in vertical order in email body, like this

enter image description here

using following css i can set text vertically in HTML but not able to set same in GMAIL Email body.

Code from my Gmail Body:

<div style=" width:50px; float:left; position:relative;padding-top:80px;transform: rotate(-90deg); -ms-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -webkit-transform: rotate(-90deg); -o-transform: rotate(-90deg);"> 
    <h1 id="Header" style="direction: rtl;font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: normal; color: #434242; white-space: nowrap; position:relative; height:auto; "> newsletter 1 </h1> 
</div>
Luke Shaheen
  • 4,262
  • 12
  • 52
  • 82
Anil D
  • 1,989
  • 6
  • 29
  • 60

2 Answers2

4

You can only use inline CSS with Gmail. try style="" on your elements

Edit: And of course you can not use all CSS attributes in Gmail. Here is a list that might be useful.

Mostafa Shahverdy
  • 2,687
  • 2
  • 30
  • 51
1

gmail doesnt support the style tag in body . Do you have used style tag in body section ?

Mehul Kaklotar
  • 365
  • 1
  • 19
  • Actually it does but filters out most of the selectors and some unless you start them with *. The same thing about attributes - some of them are removed. – mateusza Jul 21 '15 at 19:15