Search
 
SCRIPT & CODE EXAMPLE
 

HTML

align div in html

<!DOCTYPE html>
<html>
  
<head>
    <title>gfg</title>
    <style type=text/css>
        p {
            background-color: gray;
            margin: 10px;
        }
          
        div {
            color: white;
            background-color: 009900;
            margin: 2px;
            font-size: 25px;
        }
          
        body {
            text-align: center;
        }
    </style>
  
</head>
  
<body>
    <h1>GeeksForGeeks</h1>
    <h2><div>align Attribute</h2>
    <div align="center"> 
      div align="center"
  </div>
    <div align="left">
      div align="left" 
  </div>
    <div align="right">
      div align="right" 
  </div>
    <div align="justify">
      div align="justify" 
  </div>
  
</body>
  
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: HTML Image Maps 
Html :: bootstrap alerts 
Html :: ionic skeleton 
Html :: tailwind css header 
Html :: how to create an html button that acts like a link 
Html :: html table cell full width 
Html :: html if screen is smaller thatn 
Html :: how to write superscript in markdown 
Html :: multiple forms in the same line html 
Html :: whatsapp api 
Html :: bootstrap 5 navbar not working 
Html :: external javascript file not working 
Html :: buttons in bootstrap 
Html :: placeholder text html 
Html :: telto 
Html :: jsp variable in html 
Html :: img srcset 
Html :: how to add .java files to html 
Html :: visual studio code html template shortcut 
Html :: html + sign 
Html :: submit button out of from 
Html :: html to xml 
Html :: how to make an a tag not clickable 
Html :: how to jump line in html 
Html :: html select change event 
Html :: ios to pc file transfer 
Html :: color picker js 
Html :: Meta keyword tag in html 
Html :: timetable html 
Html :: convert rtf to html 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =