Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

make a html css footer like this photo https://prnt.sc/9xk7obkK7cza

  1. User

    make a html css footer like this photo https://prnt.sc/9xk7obkK7cza

  2. Assistant

    Here's an example of an HTML and CSS code to create a footer similar to the photo you provided:

    HTML:

    <footer>
      <div class="footer-content">
        <h3>Company Name</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lobortis bibendum orci, ac porttitor odio dapibus ac. Donec rutrum eleifend mollis.</p>
        <ul class="social-icons">
          <li><a href="#"><i class="fa fa-facebook"></i></a></li>
          <li><a href="#"><i class="fa fa-twitter"></i></a></li>
          <li><a href="#"><i class="fa fa-instagram"></i></a></li>
        </ul>
      </div>
    </footer>
    

    CSS:

    footer {
      background-color: #333;
      color: #fff;
      padding: 20px;
      text-align: center;
    }
    
    .footer-content {
      max-width: 800px;
      margin: 0 auto;
    }
    
    .footer-content h3 {
      font-size: 24px;
      margin-bottom: 10px;
    }
    
    .footer-content p {
      font-size: 14px;
      line-height: 1.5;
    }
    
    .social-icons {
      list-style: none;
      padding: 0;
      margin-top: 20px;
    }
    
    .social-icons li {
      display: inline-block;
      margin-right: 10px;
    }
    
    .social-icons li:last-child {
      margin-right: 0;
    }
    
    .social-icons a {
      color: #fff;
      font-size: 20px;
    }
    
    .social-icons a:hover {
      color: #ccc;
    }
    
    /* Font Awesome icons */
    .fa {
      display: inline-block;
      font: normal normal normal 14px/1 FontAwesome;
      font-size: inherit;
      text-rendering: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    .fa-facebook:before {
      content: "\f09a";
    }
    .fa-twitter:before {
      content: "\f099";
    }
    .fa-instagram:before {
      content: "\f16d";
    }
    

    Make sure to include the FontAwesome library in the head section of your HTML file in order to use the social icons. You can add these lines of code within the head tag:

    <head>
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
      <style>
        /* Your CSS code here */
      </style>
    </head>
    

    Remember to adjust the font sizes, colors, and other styles according to your needs.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.