Notice that the content within the div (.wrap) has its content centered by using text-align: center within the header (.siteHeader) . However, the content within the div (.wrap) within the section (.galSection) won’t center.
Because the contents of .wrap are all in a UL with class “gallery”, and this is your CSS for that, where you specifically state text should be justified:
.gallery li {
font-size: 1.33rem;
text-align: justify; /* <--- over here! */
padding: 10px;
line-height: 1.5;
margin-top: -5px;
}
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.