html - Strange CSS Class Name, someone explain to me what is going on? -
i'm trying make bit of copy of this website i'm having issues gallery part, images won't behave same website im attempt copy. change around once complete.
here jsfiddle of code if helps.
here css section:
/* gallery start */ .box.style2 header { display:inline-block; background:#fff; padding:2em 3em; margin:0px; } .box.style2 .inner { position:relative; padding:40px 0 0px 0; } .box.style2 { text-align:center; } .box.style2 .inner:after { content: ''; display:block; position:absolute; top:0; left:50%; height:100%; border-left:solid 1px #fff; } .box.style2 .inner .row { position:relative; } .row { border-bottom:solid 1px transparent; box-sizing:border-box; } .row:after, .row:before { content: ''; display:block; clear:both; height:0; } .row > * { float:left; } .box.style2 .inner .image { position:relative; z-index:1; padding:20px; } .image.fit { display:block; width:100%; } .gallery-image { width:25%; margin-left:0px; } /* gallery end */
and here html:
<!-- start of gallery --> <article class="container box style2"> <header> <h2>recent work</h2> <p>below images of our recent completed work</p> </header> <div class="inner gallery"> <!-- gallery images --> <div class="row"> <!-- image --> <div class="gallery-image"> <a href class="image fit" style="outline: 0px;"> <img src="images/01.jpg" /> </a> </div> <!-- image end --> <!-- image --> <div class="gallery-image"> <a href class="image fit" style="outline: 0px;"> <img src="images/01.jpg" /> </a> </div> <!-- image end --> <!-- image --> <div class="gallery-image"> <a href class="image fit" style="outline: 0px;"> <img src="images/01.jpg" /> </a> </div> <!-- image end --> <!-- image --> <div class="gallery-image"> <a href class="image fit" style="outline: 0px;"> <img src="images/01.jpg" /> </a> </div> <!-- image end --> </div> </div> <!-- gallery images end --> </article> <!-- end of gallery -->
here screenshot of images like, can see, not behaving @ all.
i think because don't have these styles, can't life of me figure out mean, can understand google classes made numbers:
.row.\30 \25 > * { padding: 0px 0 0 0px; } /* inherited from: @media screen , (max-width: 1680px}*/ .row > * { padding: 40px 0 0 40px; } .\33 u, .\33 u\24 { width: 25%; clear: none; margin-left: 0; }
edit: after readying wero's answer, understanding properly?
.row.\30 \25 > *
target class name 0
within row
class, , element within 30
class 25
, style next element within that?
the \nn<space>
syntax character escape sequence unicode character u+00nn.
this article describes topic nicely.
using escape sequences build valid css class identifiers.
why this? can speculate: brevity, generate unique names?
edit answer extended question:
.row.\30 \25 > *
selector elements (*
) parent element (>
) has css class row
, css class consisting of 2 characters u+0030 , u+0025.
Comments
Post a Comment