I am stuck on this as the div with an id "img-section" below does not properly work in my css file. For some reason,CSS stylings are not applied to #img-section but instead, #bottom-section wraps the entire section of the imgs that I cannot independently change any of the bottom section inside divs.
Here is my html and CSS which strangely work by having a border on the very top of the img section and right below another border in the title section. I want this border to appear on the bottom of the img section but no luck.
<html>
<head>
<title>hello</title>
<meta charset = "utf-8" />
<style type="text/css">
img {
width:30%;
float:left;
margin: 1.66%
}
#title-section {
font-family:serif;
font-size:15px;
text-align:center;
text-transform:lowercase;
margin-left:1.66%;
margin-bottom:10px;
border-bottom:7px solid black;
border-top:7px solid black;
width:96.68%;
}
/* hr {border-top:7px solid black;
width:96.68%;
margin-left:1.66%;
}*/
#bottom-section {
border-top:7px solid black;
width:96.68%;
margin-left:1.66%;
}
</style>
</head>
<body>
<div id="title-section">
<h1 >h e l l o</h1>
<h3 ><ins>[ ma - own - compilation - of - all - things - cool ]</ins></h3>
<h4>by Mimicat</h4>
</div>
<div id="img-section">
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_04_1024x1024.jpg?1060797035744706564" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_03_1024x1024.jpg?4506725020023455500" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_05_1024x1024.jpg?3752376622799079790" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_04_1024x1024.jpg?1060797035744706564" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_03_1024x1024.jpg?4506725020023455500" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_05_1024x1024.jpg?3752376622799079790" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_04_1024x1024.jpg?1060797035744706564" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_03_1024x1024.jpg?4506725020023455500" >
<img src="http://cdn.shopify.com/s/files/1/0698/9609/files/PSNY_RUNWAY_05_1024x1024.jpg?3752376622799079790" >
</div>
<div id="bottom-section">
<form>
<p><strong>Did you enjoy this collection?</strong></p>
<p>Hell yeah! <input type="checkbox" checked> Nah - <input type="checkbox"> </p>
<p><input type="submit"></p>
</form>
</div>
</body>
</html>
Anything wrong with my code? How can I fix this problem? I want to make a border under images or on the top of the div#bottom-section, but when I put border-top inside #bottom-section, it creates a border right below the div#title-section instead, and it drives me nuts. Any suggestions? Thank you!