Yahoo Italia Ricerca nel Web

Risultati di ricerca

  1. 12 lug 2010 · 63. > (greater-than sign) is a CSS Combinator (Combine + Selector). A combinator is something that explains the relationship between the selectors. A CSS selector can contain more than one simple selector. Between the simple selectors, we can include a combinator. There are four different combinators in CSS3:

  2. 2 mar 2009 · Learn more about CSS selectors. See Selectutorial for more great primers on CSS selectors - they are incredibly powerful, and if your conception is simply that "# is used for DIVs" you'd do well to read up on exactly how to use CSS more effectively.

  3. The @ syntax itself, though, as I mentioned, is not new. These are all known in CSS as at-rules. They're special instructions for the browser, not directly related to styling of (X)HTML/XML elements in Web documents using rules and properties, although they do play important roles in controlling how styles are applied. Some code examples: body {.

  4. 15 lug 2009 · Sure,this is only practical with a limited set of items, like categories or states, and not unlimited sets like e-shop goods, otherwise the generated CSS would be too big. But it is especially convenient when generating static offline documents. One more trick to do "conditions" with CSS in combination with the generating platform is this:

  5. 9 mag 2010 · Very old question I know, but since this is what came up on the top of my search results, I'll go ahead and answer it with modern day CSS. Since 2021, all browsers are compatible with the :is and :where pseudo-classes. :where has 0 specificity, and :is takes on the specificity of its most specific argument. 1

  6. 25 mar 2014 · I need simulate an A4 paper in web and allow to print this page as it is show on browser (Chrome, specifically). I set the element size to 21cm x 29.7cm, but when I send to print (or print preview) it clip my page. See this Live example! body {. margin: 0; padding: 0; background-color: #FAFAFA; font: 12pt "Tahoma"; }

  7. The CSS property transform is usually used for rotating and scaling elements, but with its translateY function we can now vertically align elements. Usually this must be done with absolute positioning or setting line-heights, but these require you to either know the height of the element or only works on single-line text, etc.

  8. 30 mag 2017 · One way could be setting a parent div for those elements that need to be pulled right (float: right;) and do the rest like the way shown in the the example below to have them right-aligned: .parent-div {. display: flex; float: right; background: yellow; padding: 10px;

  9. CommentedMar 10, 2009 at 20:38. 13. If you want to add style in all child and no specification for html tag then use it. Parent tag div.parent. child tag inside the div.parent like <a>, <input>, <label> etc. code : div.parent * {color: #045123!important;} You can also remove important, its not required.

  10. 15 ott 2012 · 31. The shortest way to write a selector that accesses that specific div is to simply use. [role=main] {. /* CSS goes here */. } The previous answers are not wrong, but they rely on you using either a div or using the specific id. With this selector, you'll be able to have all kinds of crazy markup and it would still work and you avoid problems ...

  1. Le persone cercano anche