My current project involves creating a website layout similar to this:
https://i.sstatic.net/5i1BK.png
I am facing difficulty in centering the text within the box like this:
https://i.sstatic.net/lCaFQ.png
This is my progress so far:
@font-face {
font-family: 'Trend Sans 004'; /*a name to be used later*/
src: url('fonts/Trend Sans W00 Four.ttf'); /*URL to font*/
}
... more CSS code here ...
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Cupid's Cafe & Bakery</title>
... more HTML code here ...
</head>
<body>
... more HTML code here ...
<hr width="100%">
</div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
</html>
I am aiming to ensure that the text is perfectly centered within the box. Also, I want to maintain consistent spacing between the header, paragraphs, and HR even when resizing the window.