CSS clean grid code will not work

Using Clean grids , my site did not respond properly, so I tried to copy and paste the default sensitive grid code into my file, and it still does not function properly.

This is the default code indicated on their website:

<div class="pure-g"> <div class="pure-u-1 pure-u-md-1-3"> ... </div> <div class="pure-u-1 pure-u-md-1-3"> ... </div> <div class="pure-u-1 pure-u-md-1-3"> ... </div> </div> 

My complete code can be found here. W , looking at the following code in a browser, the three sets of points look as if they were stacked on top of each other or with 100% column width. Removing "pure -y-1" from each list of classes shows them as if the points were very small and stacked on top of each other, literally (not stacked like blocks, since you can only see one set of points).

 <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>B&W Vending</title> <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> </head> <body> <div class="pure-g"> <div class="pure-u-1 pure-u-md-1-3"> ... </div> <div class="pure-u-1 pure-u-md-1-3"> ... </div> <div class="pure-u-1 pure-u-md-1-3"> ... </div> </div> </body> </html> 
+5
source share
1 answer

I figured it out on my own, after some confusion due to conflicting instructions on the pure-css website. When I included the following stylesheet, it worked.

 <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css"> 

On one page of a clean-css-grid is indicated:

Since media queries cannot be rewritten, we do not include the mesh system as part of pure.css. You will have to pull it as a separate CSS file. You can do this by adding the following tag to your page.

Later on the page, he indicates apparently opposite instructions:

Grids are part of the Pure CSS file. However, if you just want Grids and not other modules, you can pull it out separately.

+12
source

Source: https://habr.com/ru/post/1215096/


All Articles