Answers for "backgroundcolor html"

10

html background color

<html>
 
<body style="background-color:red;">
  <p> test <p/> 
  <body/>
  </html>
Posted by: Guest on February-23-2020
14

how to make a background color in html

<body style="background-color: #fff">
  <!---this will change the body color---!>

</body>
Posted by: Guest on May-06-2020
2

html background color

<body style="background-color:grey;">
Posted by: Guest on August-01-2021
0

fill color behid text in html

Put the text in an inline element, such as a <span>.

<h1><span>The Last Will and Testament of Eric Jones</span></h1>
And then apply the background color on the inline element.

h1 {
    text-align: center; 
}
h1 span { 
    background-color: green; 
}
An inline element is as big as its contents is, so that should do it for you.
Posted by: Guest on October-23-2020
0

fill color behid text in html

Option 1
display: table;

no parent required
h1 {
    display: table; /* keep the background color wrapped tight */
    margin: 0px auto 0px auto; /* keep the table centered */
    padding:5px;font-size:20px;background-color:green;color:#ffffff;
}
<h1>The Last Will and Testament of Eric Jones</h1>
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language