> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/parametrage/editer-imprimer/modeles-dedition-les-bases/configuration-du-modele-dedition-par-defaut/editer-une-nouvelle-feuille-de-style-pour-limpression-par-defaut.md).

# Editer une nouvelle feuille de style pour l’impression par défaut

{% stepper %}
{% step %}
**Choisir une autre feuille de style pour l'impression par défaut**

Lors d'une impression par défaut, NOUT BULDER génère une feuille de style CSS qu'il intègre au fichier HTML afin de gérer la mise en forme du document.

L'utilisateur peut remplacer ce fichier CSS pour personnaliser ses impressions, il lui faut modifier le fichier de configuration info.nb :

Dans la partie \[GENERAL] ajouter => IMPRESSION\_FICHIERCSS\_DEFAUT=.

Par exemple: IMPRESSION\_FICHIERCSS\_DEFAUT=C:\cssimpressionpardefaut.css

{% hint style="info" %}
(cf. documentation V6I05 info.nb)
{% endhint %}
{% endstep %}

{% step %}
**Editer une nouvelle feuille de style**

Voici un exemple de la feuille de style générée pour NOUT BULDER :
{% endstep %}
{% endstepper %}

{% code title="feuille\_de\_style\_impression.css" %}

```css
body
{
    font-family:Arial,Helvetica,sans-serif;
    font-size: 12pt;
    margin:0;
    text-align:left;
}

/* -- Titre du document -- */

h1
{
    text-align:center;
    font-size: 24pt;
    page-break-before: avoid;
}

body > h1,
body > header > h1
{
    page-break-before: avoid;
}

/* -- Titre separateur primaire -- */

h2
{
    font-size: 18pt;
    background: #deefff;
    background: -moz-linear-gradient(top, #add9e4 0%, #d9edf2 45%, #f7fbfc 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#add9e4), color-stop(45%,#d9edf2), color-stop(100%,#f7fbfc));
    background: -webkit-linear-gradient(top, #add9e4 0%,#d9edf2 45%,#f7fbfc 100%);
    background: -o-linear-gradient(top, #add9e4 0%,#d9edf2 45%,#f7fbfc 100%);
    background: -ms-linear-gradient(top, #add9e4 0%,#d9edf2 45%,#f7fbfc 100%);
    background: linear-gradient(top, #add9e4 0%,#d9edf2 45%,#f7fbfc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#add9e4', endColorstr='#f7fbfc',GradientType=0 );
    color: #3c6db0;
}

h2 img
{
    width: 20pt;
    height: 20pt;
    vertical-align: middle;
}

/* -- Titre separateur secondaire -- */

h3
{
    font-size: 14pt;
    background: #f4da97;
    background: -moz-linear-gradient(top, #f4da97 0%, #fefcea 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4da97), color-stop(100%,#fefcea));
    background: -webkit-linear-gradient(top, #f4da97 0%,#fefcea 100%);
    background: -o-linear-gradient(top, #f4da97 0%,#fefcea 100%);
    background: -ms-linear-gradient(top, #f4da97 0%,#fefcea 100%);
    background: linear-gradient(top, #f4da97 0%,#fefcea 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4da97', endColorstr='#fefcea',GradientType=0 );
    color: #3c6dbe;
}

/* -- Titre sequence de champs (separateur de niveau 3) -- */

h4
{
}

/* -- Separateur primaire -- */

.sep_principal
{
    margin-left:0.5cm;
}

/* -- Separateur secondaire -- */

.sep_secondaire
{
    margin-left:0.5cm;
}

/* -- Sequence de champs (separateur de niveau 3) -- */

.sep_sequence
{
    /*margin-left:0.5cm;*/
}

/* -- Gestion veuve et orphelin séparateur -- */

.sep_principal,
.sep_secondaire,
.sep_sequence
{
    orphans:3;
    widows:3;
}

/* -- Liste -- */

.liste_element
{
    border-collapse:collapse;
    border:none;
    max-width:100%;
    margin-top:3px;
    margin-right:30pt;
    width:99%;
    table-layout:fixed;
    word-wrap:break-word;
}

.liste_element thead
{
    background:#3582c4;
    color:#FFF;
    text-align:center;
    font-weight:bold;
}

.liste_element td,
.liste_element th
{
    border: 1pt solid black;
}

.liste_element td
{
    vertical-align:top;
}

.liste_element_lignepaire
{
    background-color:#FCF7DE;
}

/* -- Mise en forme de modèles particuliers -- */

/* texte long */

.texte_long
{
    page-break-inside : avoid;
}

/* fichier image */

.fichier img
{
    vertical-align:text-top;
}

/* les numerique sont aligné a droite */

.entier td,
.reel td,
.monetaire td,
.duree td
{
    text-align:right;
}

.entier td:first-child,
.reel td:first-child,
.monetaire td:first-child,
.duree td:first-child
{
    text-align:inherit;
}

/* -- Mise en forme complémentaire -- */

.datedujour
{
    text-align:right;
}

.tab_miseenforme
{
    border-spacing:0;
    border-collapse:collapse;
}

.tab_miseenforme,
.tab_miseenforme tbody,
.tab_miseenforme tr,
.tab_miseenforme td
{
    margin:0;
    padding:0;
}
```

{% endcode %}

Résultat&#x20;

<figure><img src="/files/YFkfaTFhJ67HadC2wXWv" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.simax.fr/parametrage/editer-imprimer/modeles-dedition-les-bases/configuration-du-modele-dedition-par-defaut/editer-une-nouvelle-feuille-de-style-pour-limpression-par-defaut.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
