Column width issue
-
Hey guys and gals,
Really stuck on an issue to do with Columns and I apologise in advance as it is a freakin’ long one. I have a row of x 4 columns on my website that I have created to sell my products. So far I am happy with the layout and I have managed to add a hover effect to each of the columns which I think looks pretty affective. (please see here).In order to achieve the hover effect I have add the following code using CSS – e.g. –
.fl-builder-content .fl-node-5721901c4c48b .fl-col-content { border-style: solid; border-color: #aaaaaa; border-color: rgba(170,170,170, 1); border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px!important; border-right-width: 1px!important; margin-right: 15px!important; margin-left: 15px!important; margin-bottom: 15px!important; margin-top: 15px!important; box-shadow: 1px 1px 5px #888888; }
This has worked perfectly, however I have had to add a “.fl-node-#” for each of the items that I would like to have the effect on, which is getting really messy not to mention if the “.fl-node-#” changes it stops working.
So today I decided to try an different approach and added a “class” to the column settings for each row. Then simply adding the code once to change any of the columns with that class. e.g. –
.in2drums-display-row { border-color: #aaaaaa; border-color: rgba(170,170,170, 1); border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px!important; border-right-width: 1px!important; box-shadow: 1px 1px 5px #888888; margin-left: 15px !important; margin-right: 15px !important; margin-top: 15px !important; margin-bottom : 15px !important; } .in2drums-display-row:hover { box-shadow: 3px 3px 10px #888888; margin-left: 10px !important; margin-right: 10px !important; margin-top: 10px !important; margin-bottom : 10px !important; }
This has worked to a certain degree. However as this css targets the entire column, it is using the full 25% of each column on the page. Then once the margin is added the 4th column is now shifted below. (please see here)
I have tried to force the rows to be 23% in the BeaverBuilder settings but it keeps placing the extra space in the next column. I also tried to add the “width: 23% !important;” to the css which worked for the desktop but the columns were then off centre and when the page was viewed on an mobile the columns were compressed to the 23% of the left side of the screen.
So, any help on how I could get around this would be GREATLY appreciated.
Thanks and sorry for the very long winded question.
- The topic ‘Column width issue’ is closed to new replies.