Font Styles and sizes in CSS

  • vegancoder
  • Graduate
  • Graduate
  • vegancoder
  • Posts: 176

Post 3+ Months Ago

The users default fiont styule is overiding the font i want to use and it wont let me use smaller text sizes they are all the same, is there a work around?
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1852

Post 3+ Months Ago

Absolutely. Make your design fluid so that it can adjust to the font size, rather than trying to adjust the font size (to what is surely an unreadable level) to accommodate your inflexible design.
  • noddynoodle
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Haxxorland, Norway

Post 3+ Months Ago

Code: [ Select ]
<style type="text/css">
<!--
body {font-family: arial, helvetica, sans-serif;
font-size: 10px;}
-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {font-family: arial, helvetica, sans-serif;
  4. font-size: 10px;}
  5. -->
  6. </style>


Insert this inside the HEAD-tag in any HTML document and it's the default. If this is not what you want, you make your own tag up(kinda XML), and call it <*plum*> or something. Then you put this in your head tag:

Code: [ Select ]
*plum* {font-family: the font(s) you want; font-size: 10px;

Put that between the <!-- and --> if you dont want to make another <style></style>

Hope I could help
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2193
  • Loc: Canada

Post 3+ Months Ago

Personally I used to use the px commands, but it over-rides the users preferences (which is a bad thing). Now I use ems (0.85em, 1.4em, 0.685em), they're really quite versatile :D

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.