alignment of pictures is gradual for no reason
-
Hi all,
I got a problem. I am creating a new landing-page for my website (www.noroadback.com), I ‘hide’ it as I am still working on it at https://www.noroadback.com/test/. If you go there you’ll see that the clickable images that link to articles are not aligned straight but go down gradually. I cannot figure out how to get the alignment horizontally straight.
I made the images in HTML as A href’s with a background-image. I use the CSS below.
Can someone point me at what I am doing wrong? Can someone also help me with the black lines that are underneath the images that disappear when you hover over them?
Many thanks!!!
———-
h2.linedtitles {
width: 100%;
text-align: center;
border-bottom: 1px solid #000;
line-height: 0.1em;
}h2.linedtitles span {
background: #fff;
padding: 10px;
}.recentpostscontainer {
border: none;
heigth: 180px;
}#postcusco {
border: none;
position: relative;
float:left;
width: 320px;
height: 180px;
max-width: 30%;
color: white;
margin-right: 5%;
background-image: url(“https://www.noroadback.com/wp-content/uploads/2017/08/Cusco-incawomen.jpg”);
background-size: contain;
background-repeat: no-repeat;
}#postmachupicchu {
border: none;
float: left;
width: 320px;
height: 180px;
max-width: 30%;
color: white;
margin-right: 5%;
background-image: url(“https://www.noroadback.com/wp-content/uploads/2017/08/Machu-Picchu-1.jpg”);
background-size: contain;
background-repeat: no-repeat;
}#postsalkantay {
border: none;
float: left;
width: 320px;
height: 180px;
padding-top: 10% ;
padding-left: 1%;
max-width: 30%;
color: white;
background-image: url(“https://www.noroadback.com/wp-content/uploads/2017/08/Day2-8.jpg”);
background-size: contain;
background-repeat: no-repeat;
}The page I need help with: [log in to see the link]
- The topic ‘alignment of pictures is gradual for no reason’ is closed to new replies.