Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #875642

    I have a site that has 3 columns, the outside two are set to be stuck at 300px wide due to having advertisements in them that do not scale by width.

    The columns have assigned the columns unique CSS classes.
    left-advertising-column
    middle-column
    right-advertising-column

    My issue comes when the site starts getting narrow, between desktop width and mobile activation. Between 1200px wide and 768px. The middle column gets too narrow and the content too stretched out/cut off. I have been reading about flexboxes but don’t know if that applies to enfold or not. Would it be possible at a certain width to have either one of the advertising columns be removed so the middle column takes up the remaining space or to have the middle column show first as a full width 1/1 column above the advertising columns?

    #875659

    Hey Kyle,

    Add the following to quick css:

    @media only screen and (max-width: 1200px) and (min-width: 768px)  {
    .right-advertising-column{
    display:none!important;
    }
    }

    Best regards,
    Jordan Shannon

    #875672

    Ok, so what this does is close. I swapped right for left. It ends up making the right ad column take up the new space while I want the middle column to take up space gained.

    You can see what happens on the site now. ‘

    I thought I had some CSS in place to prevent the ad column from getting wider but it may not be working.

    .left-advertising-column, .right-advertising-column {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    }

    #875775

    Hi,
    We need to help the middle column brake it’s restrains, try using this instead:

    @media only screen and (max-width: 1200px) and (min-width: 768px)  {
    .left-advertising-column{display:none!important;}
    .middle-column {width: 80% !important;}
    }

    Best regards,
    Mike

    #875854

    Amazing, this will work perfectly for now!

    #876039

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.