Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to write a text inside a div

<html>

<head>
  <style type="text/css">
    div {
      height: 100px;
      width: 100px;
      background: #ccc;
      text-align: center;
    }

    p {
      line-height: 100px;
    }

  </style>
</head>

<body>
  <div>
    <p>centered</p>
  </div>
</body>

</html>
Comment

PREVIOUS NEXT
Code Example
Html :: multiple forms in the same line html 
Html :: html upload image accept only few types 
Html :: how to break the line in html 
Html :: whatsapp api 
Html :: bootstrap input 
Html :: Bootstrap class make your form inputs look nicer 
Html :: video html player 
Html :: comment a div in html 
Html :: buttons in bootstrap 
Html :: link md 
Html :: javascript inside html 
Html :: angular open pdf in new tab 
Html :: how to write multiple style in html 
Html :: html auto download file 
Html :: prevent modal from auto closing when clicked away 
Html :: a tag onclick 
Html :: how to add text on top of an image 
Html :: highlight js 
Html :: html percentage 
Html :: html layout 
Html :: del tag html 
Html :: how to jump line in html 
Html :: how to insert code in html 
Html :: make a div clickable 
Html :: creating a table in html 
Html :: english to spanish 
Html :: wright word with < in html p tag 
Html :: text -center bootstrap 
Html :: how to make email required in html 
Html :: how to make auto focus textarea vuejs 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =