pusatdata

Cara Insert CSS Berbeda-beda di Blogspot

Oct 27th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Could you please provide more information on what you are attempting to do as this will help your fellow bloggers in the community to better assist you.
  2.  
  3. Using Theme > Customize > Advanced > Add CSS, you can add your custom CSS code.
  4.  
  5. If you need to add a print only CSS, you can use a print rule to enclose the print only CSS.
  6.  
  7. @media only print {
  8. /* Your print only CSS goes here */
  9. }
  10.  
  11. If you need CSS for mobile devices, you can try the following CSS media queries:
  12.  
  13. /* Extra small devices (phones, 600px and down) */
  14. @media only screen and (max-width: 600px) {
  15. /* Your CSS goes here */
  16. }
  17.  
  18. /* Small devices (portrait tablets and large phones, 600px and up) */
  19. @media only screen and (min-width: 600px) {
  20. /* Your CSS goes here */
  21. }
  22.  
  23. /* Medium devices (landscape tablets, 768px and up) */
  24. @media only screen and (min-width: 768px) {
  25. /* Your CSS goes here */
  26. }
  27.  
  28. /* Large devices (laptops/desktops, 992px and up) */
  29. @media only screen and (min-width: 992px) {
  30. /* Your CSS goes here */
  31. }
  32.  
  33. /* Extra large devices (large laptops and desktops, 1200px and up) */
  34. @media only screen and (min-width: 1200px) {
  35. /* Your CSS goes here */
  36. }
  37.  
  38. Additional information on CSS media queries is available here:
  39. https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
  40. https://www.w3schools.com/css/css_rwd_mediaqueries.asp
  41.  
  42. If you need a specific CSS code for one post or one page, you can insert CSS code on the relevant post or page by selecting the HTML mode in the Blogger editor:
  43.  
  44. <style type="text/css">
  45. /* Your page or post specific CSS goes here */
  46. </style>
  47.  
  48. ​I hope this helps you understand the possibilities.
  49.  
  50. Have a good day.
Add Comment
Please, Sign In to add comment