Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Hi. I have copied my code for a FCCamp project over to CodePen so that I can include a link to it in my Portfolio page. However, to make that link appear as an image, I want to include an img element as the content in the anchor element that links to the project.
Is there a ‘nice’ way to do this on CodePen, or is it necessary to make my own image file and find an image-hosting website and then provide the link to that image as the src for the img element?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8"/>
<meta name="author" content="Peter Hawes" />
<meta name="description" content="Personal Portfolio Page"/>
<title>Peter Hawes Web Development Projects</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="styles.css"/>
<section id="welcome-section">
<nav id="navbar">
  <div class="navdiv"><a class="navlink" href="#welcome-section">About</a></div>
  <div class="navdiv"><a class="navlink" href="#projects">Work</a></div>
  <div class="navdiv"><a class="navlink" href="#contacts">Contact</a></div>
<div class="centertext">
<h1 class="nametext">Peter Hawes</h1>
<p class="subtext">Hoping to suck a little less with each project.</p>
<section id="projects">
<div class="project-tile"></div>
<p>Technical Documentation Page</p>
<a id="techdocpage" href=""><img src="imageurlhere" alt="Technical Documentation Page"/></a>
<div class="project-tile">
<a class="techlink" href=""><img src="linktoTechDocProject" alt="LinkHereToTechnicalDocumentationProject"/></a>
<a id="profile-link" href="" target="_blank">Show All &gt</a>
<section id="contacts"></section>

/* file: styles.css */
* {
  margin: 0;
  padding: 0;
#welcome-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
.centertext {
  align-self: center;
  margin-top: 50vh;
  border: 5px solid transparent;
  text-align: center;
  background-color: transparent;
  font-family: "Helvetica", sans-serif;
 font-style: bold;
 font-size: 40px;
  font-size: 20px;

nav {
  border: 2px solid black;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  background-color: grey;
.navdiv {
  padding: 10px;
  background-color: yellow;
body {
  background: linear-gradient(
    90deg, rgb(200,150,100), rgb(100,150,140))

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

You can use the thumbnail from the Codepen preview.

Or just right-click the preview and grab the image link from inside the div with the data-picture attribute.

You can also embed the pens

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.