WebSite X5Help Center

 
Francesco Tedeschi
Francesco Tedeschi
User

Html per testo con riempimento  it

Author: Francesco Tedeschi
Visited 578, Followers 2, Shared 0  

Scusate la mia ignoranza nel mondo dei codici laughing
con codice html , è possibile realizzare un testo con riempimento ???

Voglio creare questa scritta:



NON DISPONIBILE , con testo grassetto bianco e riempimento rosso, dimensione del font 16px (eventualmente modificabile da me) il tutto deve essere centrato.... 

Ho cercato su internet ma non riesco a trovare nulla sul riempimento....

Grazie

Posted on the
5 ANSWERS - 1 CORRECT
Giuseppe Guida
Giuseppe Guida
User

Ciao, una volta che hai individuato l'ID dell'0ggetto testo, dovresti aggiungere al codice le proprietà "background", "padding" e "width" e "text-align".

Facendo finta che l'ID dell'oggetto testo è #imTextObject_02_tab0 .imTACenter , avrai:

<style>
#imTextObject_02_tab0 .imTACenter {
background: red;
text-align: center;
padding: 10px;
width: 70%;
}
</style>

Read more
Posted on the from Giuseppe Guida
Giuseppe Guida
Giuseppe Guida
User

Ah, ho letto meglio, avevo capito che un semplice testo all'interno di un Oggetto Testo tu lo volessi con background, invece vuoi creare ex novo quel testo. Segui allora il consiglio di Gabriele. Ciao

Read more
Posted on the from Giuseppe Guida
Stiac Engineering
Stiac Engineering
User

Pardon Giuseppe, non avevo visto che avevi già risposto. HTML e CSS fanno buone cose. Se poi ci metti JS e PHP rischi di creare dipendenza.

Ho inserito anche delle descrizioni nel sperando possano essere di aiuto.

Read more
Posted on the from Stiac Engineering
Francesco Tedeschi
Francesco Tedeschi
User
Author

Grazie @Giuseppe e @Gabriele

descrizioni molto utili wink

Read more
Posted on the from Francesco Tedeschi