âCSSã ãã§ãããªæãã«ä¸ä¸ä¸å¤®æããå®ç¾ããããã¯ããã¯ã§ããä¸è¨ã®3ã¤ã®æ¹æ³ãç´¹ä»ãã¾ãã ã»1è¡ã®ã¿ã®ããã¹ããä¸å¤®æãã«ããå ´å ã»2è¡ä»¥ä¸ã®ããã¹ãã¾ãã¯ç»åãä¸å¤®æãã«ããå ´å ã»é«ãã決ã¾ã£ã¦ããªãè¦ç´ ãä¸å¤®æãã«ããå ´å 1è¡ã®ã¿ã®ããã¹ããä¸å¤®æãã«ããå ´å <!-- HTML --> <div> <p>1è¡ã®ã¿ã®ããã¹ãã«æç¨</p> </div> /* CSS */ div{ width: 200px; height: 100px; background: #DDDDFF; text-align: center; } p{ line-height: 100px; } â1è¡ã®ã¿ã®ããã¹ããä¸å¤®æãã«ãããµã³ãã« line-heightã¯è¡éã®ã¹ãã¼ã¹ãå¶å¾¡ããããããã£ã§ãããªã®ã§ã2è¡ä»¥ä¸ã®æãªã©ã«ã¯å©ç¨ã§ãã¾ããã1è¡ã ãã®å ´åã«ã¯ç°¡åã«å®è£ ã§ããæç¨ãªæ¹æ³ã§ã
{{#tags}}- {{label}}
{{/tags}}