PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 16, 2022

[FIXED] How can I activate the CSS code in Chrome

 October 16, 2022     css, google-chrome, opencart     No comments   

Issue

I am using OpenCart 3.0.3.8. The eshop is https://morrisdirect.co.uk At the end of the stylesheet.css file, I added the following CSS code:

@media all and (min-width: 900px) {
    .container-two-columns {
    }
    .columns-two-columns {
       column-count: 2;
       column-gap: 0.3em;
    }
}

I am calling this CSS code from the homepage (and some more pages) to put the (below the slider) pictures next to each other. It is running perfectly in desktop Firefox and Opera, but it is not running in Chrome.

Can you help me please? :)

The result


Solution

You need to make the <a> elements block elements for this to work:

@media all and (min-width: 900px) {
    .columns-two-columns {
       column-count: 2;
       column-gap: 0.3em;
    }
    .columns-two-columns > a {
        display: block;
    }
}

You don't need the:

.container-two-columns {
    }

Since it's not doing anything.



Answered By - disinfor
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing