Font Styles and sizes in CSS

  • vegancoder
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 28, 2004
  • Posts: 176
  • Status: Offline

Post October 8th, 2004, 2:09 am

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?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 8th, 2004, 2:09 am

  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Aug 07, 2004
  • Posts: 1853
  • Status: Offline

Post October 8th, 2004, 7:46 am

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
  • Joined: Oct 04, 2004
  • Posts: 75
  • Loc: Haxxorland, Norway
  • Status: Offline

Post October 9th, 2004, 1:27 am

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
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post October 9th, 2004, 7:33 am

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 168 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.