Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Grandma Moses</title>
</head>
<main id="main">
  <h1 id="title">Grandma Moses</h1>
  <p>An American Folk Artist</p>
  <div id="img-div">
    <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1573966516304&di=3de05f0820ad605b4fadcdea27354f24&imgtype=jpg&src=http%3A%2F%2Fn1.itc.cn%2Fimg8%2Fwb%2Frecom%2F2016%2F02%2F17%2F145566638539871937.jpeg"
      alt="Grandma Moses is painting"
    />
    <p id="img-caption">
      Anna Mary Robertson, also known as Grandma Moses, became widely famous for her nostalgic paintings depicting rural American life.
    </p>
  </div>
  <section id="tribute-info">
    <h3>Who Was Grandma Moses?</h3>
    <p id="text">Grandma Moses was an American artist who spent decades living the rural, agricultural life that she would later feature in her paintings. She only began devoting herself to art when she was in her seventies. In 1938, an art collector discovered her work. Completely self-taught, Moses soon became famous for her images of country life.</p>
    <h3>Farmer, Wife and Mother</h3>
    <p id="text">Born Anna Mary Robertson on September 7, 1860, in Greenwich, New York, Grandma Moses was one of the most famous folk artists of the twentieth century. She grew up as one of ten children on her parents' farm. Leaving home at age 12, Moses went to work as a hired girl for a nearby farm. She married Thomas Moses in 1887, and the pair settled in Virginia’s Shenandoah Valley. There they ran a farm and raised five children together (the couple lost five other children as infants).

In 1905, Moses returned to New York State with her family. She and her husband operated a farm in Eagle Bridge, New York. Moses later began dabbling in painting, creating her first work on a fireboard in her home in 1918. She occasionally painted after that, but she did not devote herself to her craft until much later. Moses suffered a great loss in 1927 with the death of her husband, and she sought ways to keep busy in her grief.</p>
    <h3>Acclaimed Folk Artist</h3>
    <p id="text">By the mid-1930s, Moses, then in her seventies, devoted most of her time to painting. Her first big break came in 1938. She had some of her works hanging in a local store, and an art collector named Louis J. Caldor saw them and bought them all. The following year, Moses had some of her paintings shown at the Museum of Modern Art in New York City in an exhibition of unknown artists. She went on to have her first one-woman show in New York and had her picturesque works displayed at Gimbels, a famous New York department store, the following year.

Moses often drew from her memory for her captivating scenes of rural life. According to the New York Times, she once said that “I’ll get an inspiration and start painting; then I’ll forget everything, everything except how things used to be and how to paint it so people will know how we used to live.” Some of her images, such as “Applebutter Making” (1947) and “Pumpkins” (1959), brightly depict the labors involved in agricultural life. Others, such as “Joy Ride” (1953), showcase a moment of fun and play.
    <br> <br>Sometimes referred to as an American primitive artist because she was self-taught, Moses developed a devoted following. In the mid-1940s, her images were reproduced on greeting cards, which introduced her to a wider audience. Moses won the Women’s National Press Club Award for her artistic achievements in 1949. She went to Washington, D.C., to collect this honor and met with President Harry Truman during her visit. Moses soon switched from the paintbrush to the pen, writing the 1952 memoir My Life’s History.
    </p>
    <h3>Death and Legacy</h3>
    <p id="text">To celebrate her 100th birthday, New York governor Nelson Rockefeller declared September 7, 1960, as “Grandma Moses Day.” He repeated the honor the following year to mark the artist turning 101. By this time, however, Moses was in ill health. She passed away on December 13, 1961, in a medical center in Hoosick Falls, New York.

During her career, Moses created about 1,500 works of art. Her paintings still remain popular today and provide a glimpse into America’s pastoral past. According to an Associated Press report, President John F. Kennedy remembered Moses as “a beloved figure from American life.” He also said that “The directness and vividness of her paintings restored a primitive freshness to our perception of the American scene.”</p>
    <h3>
      Thank <a id="tribute-link" href="https://www.biography.com/artist/grandma-moses" target="_blank">Biography</a> for the infomation.
    </h3>
  </section>
</main>
</html>
            
          
!
            
              html {
  font-size: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
  margin: 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

@media (max-width: 300px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

a {
  color: dark-blue;
}

#main {
  margin: 30px 8px;
  padding: 15px;
  border-radius: 5px;
  background: #eee;
}
#text{
  text-align: left;
}
@media (max-width: 460px) {
  #main {
    margin: 0;
  }
}

img {
  max-width: 100%;
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto;
}

#img-div {
  background: white;
  padding: 10px;
  margin: 10px;
}

#img-caption {
  margin: 10px 10px 10px 10px;
}

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;
  }
}
            
          
!
999px

Console