Hi there! I'm a newbie around here, and I have a question about a particular issue.
I noticed that the text appears to be located outside of the designated box, which looks quite odd. How can I ensure that the text displays within the specified box? Did I make an error in my coding somewhere? Upon reviewing my code, I am unable to pinpoint any issues. For your information, I used Dreamweaver for this interface design.
Below are snippets of the HTML and CSS codes:
<html>
<head>
<meta charset="utf-8">
<title>Deane.co</title>
<link href="style.css" rel="stylesheet" type="text/css" >
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div id="nav1">
<h4><a href="index.html"><h1>Deane.co</a></h4>
<ul>
<li id="active"><a href="index.html"</a>Home</li>
<li><a href="service.html"</a>Products</li>
<li><a href="contact.html"</a>Contact</li>
<li><a href="about.html"About</a>About</li>
</ul>
</div>
<div id="main-content">
<br>
<h1> Welcome To Deane.co </h1>
<br>
<p> Welcome to Deane.co the place to shop beautiful clothes easier </p>
<br>
<div id = "products">
<h5><a href="products.html">Check our products</a></h5>
</div>
</div>
<div id="shirtsaesthetic">
<div id="shirtsaesthetic1"> <img src="Images/shirtsaesthetic.jpg"> <br>
<h4> Hipster Blouse </h4> <br>
<p> RM40 </p>
</div>
<div id="shirtsaesthetic1"> <img src="Images/shirtsaesthetic.jpg"> <br>
<h4> Hipster Blouse </h4> <br>
<p> RM40 </p>
</div>
<div id="shirtsaesthetic1"> <img src="Images/shirtsaesthetic.jpg"> <br>
<h4> Hipster Blouse </h4> <br>
<p> RM40 </p>
</div>
</div>
<div id="footer">
<h2>© Allright Reserved</h2>
<div>
<ul>
<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>
</div>
</body>
</html>
For the CSS code snippet, refer to the original post above.