egoselfaxis
asked on
CSS columns not working correctly in Chrome and Opera
I'm trying to fix an annoying CSS bug on a WordPress site that I'm developing and am hoping that someone here can help me. If you view this page in either Firefox, Edge, or IE11 and scroll down to the bottom -- you'll notice that the 2 social icons are being displayed to the right of the 3 links (ie: Privacy Policy, Terms of Use, Sitemap).
https://rgc.touchstoneliving.com/
This appears to be being achieved using this CSS rule:
... where "columns: 2" is suppoedly splitting the 5 different list items into 2 separate columns.
However, .. if you view the same page using either Chrome or Opera, ..the Instragram social icon is for some reason being displayed at the bottom of the first column instead of at the top of the 2nd column. My assumption was that the CSS would try to evenly split the 5 different list items into the 2 different columns - with the first 3 list items being displayed in the 1st column, and the remaining 2 in the 2nd column. But obviously this isn't the case.
How can I fix this? Is there any way that I can tweak this CSS rule somehow so that it forces the last 2 list items to be displayed in the 2nd column (in Chrome and Opera)? If so, how?
- Yvan
https://rgc.touchstoneliving.com/
This appears to be being achieved using this CSS rule:
.widget-pages ul {
list-style: none;
columns: 2;
}
... where "columns: 2" is suppoedly splitting the 5 different list items into 2 separate columns.
However, .. if you view the same page using either Chrome or Opera, ..the Instragram social icon is for some reason being displayed at the bottom of the first column instead of at the top of the 2nd column. My assumption was that the CSS would try to evenly split the 5 different list items into the 2 different columns - with the first 3 list items being displayed in the 1st column, and the remaining 2 in the 2nd column. But obviously this isn't the case.
How can I fix this? Is there any way that I can tweak this CSS rule somehow so that it forces the last 2 list items to be displayed in the 2nd column (in Chrome and Opera)? If so, how?
- Yvan
ASKER
Specifying a column gap of 50px kinda-sorta works -- only it's now forcing my Privacy Policy link to wrap to a 2nd line:
https://rgc.touchstoneliving.com/
I tried adding "white-space: nowrap" to the list items, .. but that seems to completely cancel out the column gap.
- Yvan
https://rgc.touchstoneliving.com/
I tried adding "white-space: nowrap" to the list items, .. but that seems to completely cancel out the column gap.
- Yvan
.footer .widget-pages li {
font-size: 14px;
line-height: 14px;
/* margin: 0 0 10px 0; */
font-weight: 700;
}
try this for now.
font-size: 14px;
line-height: 14px;
/* margin: 0 0 10px 0; */
font-weight: 700;
}
try this for now.
Try this now.
.footer .widget-pages li {
font-size: 14px;
line-height: 14px;
margin: 0 1 10px 0;
font-weight: 700;
}
.footer .widget-pages li {
font-size: 14px;
line-height: 14px;
margin: 0 1 10px 0;
font-weight: 700;
}
ASKER
ASKER
I just saw your revised code snippet .. but I don't believe that "margin: 0 1 10px 0;" is even valid CSS.
Regardless, I tried applying the changes but still no difference.
Regardless, I tried applying the changes but still no difference.
Your site is broken all over. So I thought, meh, lol :) Works in my browser. And in IE and Edge.
ASKER
Anyone else here have any suggestions? Note that I'm using the latest versions of Chrome and Opera on a Windows 10 PC.
Your style is referenced twice...
https://rgc.touchstoneliving.com/wp-content/themes/houzez/css/main.css?ver=1.8.2.1
and
https://rgc.touchstoneliving.com/wp-content/themes/houzez-child/style.css?ver=1.8.2.1
Remove the style from style or main or update both.
https://rgc.touchstoneliving.com/wp-content/themes/houzez/css/main.css?ver=1.8.2.1
and
https://rgc.touchstoneliving.com/wp-content/themes/houzez-child/style.css?ver=1.8.2.1
Remove the style from style or main or update both.
ASKER
You're not being at all helpful. I kindly ask that you please stay out of this discussion.
No problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mess with the gap width to see what happens.