Edit code for tribute page project

<div id="main">
  <h1 id="title"> Dr.Norman Borlaug</h1>
</div>

How do i set the the h1 tag text to be centered in css this how i have it currently but it does not work ` #div=main {

text-align: center;

}
`

Try #title {
text-align: center;
}
Or you can do

                   #main { 
                                     text-align: center; 
                                                                                 }

When you enter the #id do not include “div=”. Only enter what is in the quotations.

tried both of those none worked is this why

 <style >



    .row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;   
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }

   {

    text-align: center;

  }
    
















  </style>



  <body>
   <html>
  
 
<div id="main">
  <h1 id="title"> Dr.Norman Borlaug</h1>
</div>

<div id="img-div">
<div class="row">
  <img src="img/normanwithpeople.png" alt="Norman Borlaug having a conversion with colleuges">
  <img src="img/norman-borlaug.png" alt="Norman Borlaug in a field smiling" id ="image">
  <p id="img-caption">
    </div>
     <div class="column">
    
    <img src="img/normanatconference.png" alt="Norman Borlaug at a confrence">
     <img src="img/normanwithjimmy.png" alt="Norman_Borlaug with  former President Jimmy Carter">
    
  </div>
  <div class="column">
    <img src="img/norman.png" alt="Norman Borlaug and his wife">
    <img src="img/normangetsaward.png" alt="Norman Borlaug receives an award from president George W Bush">

     <div class="column">
      <img src="img/normanwithgranddaughter.png" alt="Norman Borlaug with his granddaughter who is carrying his great grandchild">
      <img src="img/normaninmexico.jpg"  alt=" A painting of Norman Borlaug in a field in Mexico">



  </div>
    


    <em>Fathered a revolution that saved billons of lives<em>
    
  </p>
 </div>   

    
 <div id="tribute-info">
   <p>Norman Ernest Borlaug (/ˈbɔːrlɔːɡ/; March 25, 1914 – September 12, 2009)[3] was an American agronomist who led initiatives worldwide that contributed to the extensive increases in agricultural production termed the Green Revolution. Borlaug was awarded multiple honors for his work, including the Nobel Peace Prize, the Presidential Medal of Freedom and the Congressional Gold Medal.

Borlaug received his B.S. in forestry in 1937 and Ph.D. in plant pathology and genetics from the University of Minnesota in 1942. He took up an agricultural research position with CIMMYT in Mexico, where he developed semi-dwarf, high-yield, disease-resistant wheat varieties.[1][2] During the mid-20th century, Borlaug led the introduction of these high-yielding varieties combined with modern agricultural production techniques to Mexico, Pakistan, and India. As a result, Mexico became a net exporter of wheat by 1963. Between 1965 and 1970, wheat yields nearly doubled in Pakistan and India, greatly improving the food security in those nations.[4]

Borlaug was often called "the father of the Green Revolution",[5][6] and is credited with saving over a billion people worldwide from starvation.[7][8][9][10] According to Jan Douglas, executive assistant to the president of the World Food Prize Foundation, the source of this number is Gregg Easterbrook's 1997 article "Forgotten Benefactor of Humanity." The article states that the "form of agriculture that Borlaug preaches may have prevented a billion deaths."[11] He was awarded the Nobel Peace Prize in 1970 in recognition of his contributions to world peace through increasing food supply.</p>
  </div>
  <a href="https://en.wikipedia.org/wiki/Norman_Borlaug"  target="_blank" id="tribute-link"> <p> Learn More About Norman Borlaug<p>






I set up a css grid but The title shouldn’t be apart of the grid

<div id="main">
  <h1 id="title"> Dr.Norman Borlaug</h1 

used both of these none of worked for text-align command is there somewhere conflicting properties?

the h1 has a closed tag just didn’t paste it

Look at this part of your CSS:

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }

   {

    text-align: center;

  }

Which element is supposed to have text-align:center ? There’s no selector.

when i put title or main as the selector it never worked but when i remove the responsive image grid it centers but when i add it it doesn’t how do I center it. with the responsive image grid.

That @media rule also misses a closing bracket, but without a link to a working example (codepen, for example), it’s difficult to tell why it’s not working.