Community Forums › Forums › Archived Forums › Design Tips and Tricks › Making photos level in Monochrome Pro
Tagged: code, level at the top, main section, photos, Sidebar
- This topic has 9 replies, 2 voices, and was last updated 6 years, 11 months ago by
Terry.
-
AuthorPosts
-
April 10, 2019 at 10:23 pm #490591
designerwriter
MemberHello. A while back, I asked how I can make the photos in the sidebar level with the photos on the main section. I edited the code and it worked. Now I find that the photos in the sidebar are too high and not level. I am not sure what happened if it changed with the update to the theme. How can I fix this? Do I add the code to the Additonal CSS section?
Here is another page in addition to the original URL I supplied:
http://griefcandorandlove.com/about/
http://griefcandorandlove.com/celestial-bodyworks/April 11, 2019 at 9:46 am #490607designerwriter
MemberCan someone help me please?
April 18, 2019 at 5:27 am #490718Terry
MemberMorning,
You can add the following code into your style.css or Customizer=>Additional CSS, depending on your comfort level.
.sidebar { padding-top: 50px; } @media only screen and (max-width: 1023px) { .sidebar { padding-top: 0; } }Victor has a great tutorial on using your browser's inspection tool that may help.
Warm Regards,
TerryApril 22, 2019 at 6:38 pm #490799designerwriter
MemberHi Terry. I am getting this error that says..“Markup is not allowed in CSS.There are 15 errors which must be fixed before you can save.” It won’t let me publish this code under Additional CSS unfortunately. What should I do now?
I know it’s the code you posted because when I took it off, I was able to publish it so I am not sure what is wrong with that code or why I can’t publish it.
April 23, 2019 at 6:36 am #490818Terry
MemberHi,
Not sure how that link got in there, it should NOT be there and is generating that error.
Here's what it should be, sorry for the confusion...
.sidebar { padding-top: 50px; } @media only screen and (max-width: 1023px) { .sidebar { padding-top: 0; } }I can't remove the link... try "@media only screen and..."
April 23, 2019 at 7:35 am #490819designerwriter
MemberSo should it be this Terry:
.sidebar {
padding-top: 50px;
}
@media only screen and (max-width: 1023px) {
.sidebar {
padding-top: 0;
}
}April 23, 2019 at 8:00 am #490820designerwriter
MemberOk this worked:
.sidebar {
padding-top: 115px;
}
@media only screen and (max-width: 1023px) {
.sidebar {
padding-top: 0;
}
}I changed the 50px value to 115px and the photo moved down to be level with the other photo. Thanks for your support Terry!
April 23, 2019 at 3:58 pm #490825Terry
MemberSo glad it worked!
Take Care,
TerryApril 23, 2019 at 9:33 pm #490828designerwriter
MemberThank you Terry! Take care right back at you.
designerwriter
April 25, 2019 at 6:34 am #490849Terry
MemberJust testing:
.sidebar { padding-top: 50px; } @media only screen and (max-width: 1023px) { .sidebar { padding-top: 0; } } -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.