I AM WORKING ON A FOOD WEBSITE AND I AM HAVING PROBLEM WITH STYLING IT. index Lists of Recipes Add recipes <% recipes.forEach(recipes =>{ %> > <%=recipes.name %> <% }) %> AND I AM TRYING TO GET SOMETHING LIKE THIS.
I AM WORKING ON A FOOD WEBSITE AND I AM HAVING PROBLEM WITH STYLING IT.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lora&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
<title>index</title>
</head>
<body>
<div class="topnav">
<h1>Lists of Recipes</h1>
<a href="/recipes/new">
<button>Add recipes</button></a>
</div>
<div class="container">
<% recipes.forEach(recipes =>{ %>
<div class="card">
<a href="/recipes/<%=recipes._id%>">
<img src=<%=recipes.img %>> <br>
<div class="info">
<%=recipes.name %></a>
</div>
</div>
<% }) %>
</div>
</body>
</html>
AND I AM TRYING TO GET SOMETHING LIKE THIS.
Step by step
Solved in 3 steps with 2 images