Jump to content

shaili_shah

Members
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by shaili_shah

  1. Using media queries are a popular technique for delivering a tailored style sheet (responsive web design) to desktops, laptops, tablets, and mobile phones.

    You can also use media queries to specify that certain styles are only for printed documents or for screen readers (mediatype: print, screen, or speech).

    In addition to media types, there are also media features. Media features provide more specific details to media queries, by allowing to test for a specific feature of the user agent or display device. For example, you can apply styles to only those screens that are greater, or smaller, than a certain width.

    for more information refer below link:

    https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

  2. css:
    p {
        font-size: 30px !important;
    }
    #thing {
        font-size: 20px;
    }
       html:
    <p id="thing">fontsize</p>

    The paragraph is will be 30px in font-size, even though the ID selector has higher specificity. The !importantrule overrides that particular property.
     

×
×
  • Create New...