07 July 2009

How to use CSS font-weight

Font-weight is what makes text bold. Firstly, let's make it clear that's it's easier to style the elements in the external stylesheet than to do the styling inline. You can use 'b' tag to make elements bold by wrapping it around the text, although it's recommended now to rather use 'strong' tags instead. I don't use any of those two.

Let's quickly look at the standard options. There's normal, bold, bolder, lighter and then values from 100 to 900. Here's an image with those values set:

font-weight values displayed

As you can see, I clearly don't understand what you'll use bolder and lighter for. For that matter, since only normal and bold is left, I also don't understand what the values are worth, since from 600 it's bold and before that it's normal.

I make a class

.bold {font-weight:bold}

in my css file and just add that class to words or tags that I want to make bold. Works best for me.

Take care! Tjorriemorrie

1 comment:

  1. www.metatron4025.com
    www.hunter4025.com
    www.hunter4025.com/hunter-4025-nls-driver-and-software-free-download
    www.laser-watch.com
    www.health-machine.org
    www.e-healthmachine.net
    www.e-healthmachine.org
    www.e-healthmachine.com
    www.health-machine.net
    www.boruhealthmachine.net
    www.boruhealthmachine.org
    www.boruhealthmachine.com
    www.shengshou.cc
    www.o-bd.org
    www.3d-nls-health-analyzer.com
    www.skintestsystem.com
    www.health-machine.com
    www.3dnlshealthanalyzer.com
    www.maikong.cc
    www.e-dentaltools.com
    www.skin-analyser.com
    www.iridologycamera.org
    www.ion-cleanser.org
    www.quantum-resonance-magnetic-analyzer.com
    www.shengshou.cc
    www.e-iphoneparts.com
    www.iris160.com
    www.iriscope.org
    www.lasertherapymachine.com
    www.monkong.net
    www.high-voltage-therapy.com
    www.skin-observed-system.com
    www.monkon.net
    www.hongmoyi.org
    www.qra-software.com
    www.healthfactory160.com
    www.healthfactory160.net
    www.healthfactory160.org
    www.8dnls.net
    www.vector-9d-nls.com
    www.skin-observed-system.com
    www.nls-software.com
    www.ipp-metatron.com
    www.veterinary-ultrasound.cc
    www.hydrogen-machine.com
    www.hair-extensions.cc
    www.monkonhair.com
    www.human-hair.org
    www.cheap-hair-extensions.net
    www.wigs-for-sale.net
    www.virgin-brazilian-hair.com
    www.cheap-hair-extensions.net
    www.virgin-indian-hair.com
    www.virgin-european-hair.com
    www.virgin-peruvian-hair.com

    ReplyDelete