Home › Forums › All Other Themes › Complete theme – how to center align Featured Boxes
- This topic has 11 replies, 3 voices, and was last updated 8 years, 1 month ago by Sonl Sinha.
-
AuthorPosts
-
December 13, 2016 at 3:03 am #55502
URL is http://lowenpianohouse.com/wp/v4
December 13, 2016 at 6:38 am #55530Hi,
Kindly go to Appearance>>Customize>>Basic>>Custom CSS Box
Add this code there:
.site_boxed .fblock4 { width:22.70%}
.site_boxed .featured_area .sectionrow { margin:0;}Regards,
DaveDecember 13, 2016 at 7:55 am #55539Thanks for the prompt response.
Unfortunately the provided solution only works for Desktop layout; the 4 boxes would be squished together when viewing on a small screen such as mobile phone. Is there another cure?
December 13, 2016 at 9:02 am #55542Kindly add this code in custom css box:
@media screen and (max-width:767px) {
.site_boxed .fblock4, .boxpattern-2 { width:100%;}
.servicerow { margin:0;}
}Regards,
DaveDecember 13, 2016 at 9:36 am #55543Thanks but they become left aligned again when viewing in desktop mode?
December 13, 2016 at 10:33 am #55553Did you added both code?
.site_boxed .fblock4 { width:22.70%} .site_boxed .featured_area .sectionrow { margin:0;} @media screen and (max-width:767px) { .site_boxed .fblock4, .boxpattern-2 { width:100%;} .servicerow { margin:0;} }
Regards,
DaveDecember 15, 2016 at 7:11 am #55770Yes both code added and the boxes still aligned to the left in desktop view
December 15, 2016 at 9:02 am #55783Hi Pui,
Add this code in custom css box:
.fblock4 { width:22.70%}
.site_boxed .featured_area .sectionrow { margin:0;}
@media screen and (max-width:767px) {
.fblock4, .boxpattern-2 { width:100%;}
.servicerow { margin:0;}
}Regards,
DaveDecember 16, 2016 at 4:11 am #55848Thank you Dave it finally worked.
I also noticed that the Flipboxes are aligned a little off center to the right. Is there a way to make them perfectly centered?
December 16, 2016 at 10:54 am #55866Kindly go to Appearance>>Customize>>Scroll down to left bottom to find Custom CSS and paste there:
Add this code there:
.flipcard.h:nth-child(2) {margin-left:-10px !important;}
@media screen and (max-width:1169px) {
.flipcard.h:nth-child(2) {margin-left:0 !important;}
}Regards,
ShriDecember 16, 2016 at 2:41 pm #55897It worked. Thank you Shri!
December 20, 2016 at 4:50 am #56039🙂
-
AuthorPosts
- The topic ‘Complete theme – how to center align Featured Boxes’ is closed to new replies.