| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: May 2005 Location: England
Posts: 390
![]() ![]() ![]() | Font Sizes Hey, I'm just curious as to how i should code my font-sizes in CSS, using: 10em or whatever OR to just use 10px, which is more accessible and what is the best way to code this? I just wanna know how to make my CSS even better
__________________ -Beaver6813.com - Web Developer Extraordinaire! |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | I used to use em, until I noticed it was relative: Code: <div style="font-size:10em"> Text is bigger in here <span style="font-size:10em">than in here</span> </div> |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: May 2005 Location: England
Posts: 390
![]() ![]() ![]() | Right, so i should stay with px :-) I noticed with em you can't change the font size :-/ Well as far as i can tell anyways, anyone else got any other opinions?
__________________ -Beaver6813.com - Web Developer Extraordinaire! |
| |