email-bugs icon indicating copy to clipboard operation
email-bugs copied to clipboard

SFR adds `margin:auto` to all tags

Open tdefossezbadsender opened this issue 2 years ago • 0 comments

The desktop webmail of SFR has annoying default styles applying to all html tags without .userSignature class inside <div id="read-content-block">. So, basically, all the elements :). It applies an horizontal center alignment to these elements. Here are the incriminating styles:

div.read-content-block *:not(.userSignature *) {
    font: 100% "Helvetica Neue",Helvetica,Arial,sans-serif;
    margin: auto;
    padding: 0;
}

The styles can be found in SFR's main.css file.

We can add a CSS reset at the top of the document targeting the desired elements:

table {
   margin:0px;
}

tdefossezbadsender avatar Nov 21 '22 11:11 tdefossezbadsender