How to add bold text with CSS? [duplicate]


Tags: html,css

Problem :

This question already has an answer here:

Answers to this question show how to prepend/append text to a HTML element contents using CSS. Is there a way to make the CSS-added text bold without making the original HTML element contents bold as well?



Solution :

Sure:

.OwnerJoe:before {
  content: "Joe's Task:";
  font-weight: bold;
}

    CSS Howto..

    how to move fixed slider to top when scrolling using CSS only

    How is the “greater than” or “>” character used in CSS?

    How to use css with UIWebView?

    How to fix this arrow shape created using CSS in IE9

    How to link to a CSS if a certain condition happens?

    How to style Zend Checkboxes

    How can I have the text content of a div overflow in a HTML email template?

    How to animate CSS resize?

    How to place scroll bar on side of table?

    More CSS woes: how to stack divs inside another div, and have them all behave?

    How to do a full bleed background image that scales with resolution in css/javascript? [duplicate]

    Dropdown Menu will move all
    Below. How to prevent it?

    How do I remove the gap between the header and image slider

    CSS: how to style a div so that it has no effect

    How to add two class styles to anchor tag

    jQuery UI Droppable - How to allow only 1 element per drop zone, instead of stacking

    How to fade between classes in a conditional query

    How to make a better transition of

    how to call td's id to change css style onclick

    How do I change this flipping card to rotate itself onclick?

    attaching div to a specific element for showing with javascript

    How to start ordered list from 2 not 1 with w3c validity and IE 6 compatibility?

    How to include multiple Css Class in ActionLink?

    css how to increase the size of rounded image button with varying text

    How to make two separate, independent columns (using html and css)

    How to resize an image in pure HTML/CSS while keeping its proportions?

    How to scale content for displays keeping the ratio [closed]

    How to create a scrolling background image with css/jquery/html

    How can I add CSS to grandchild pages in an unordered list on Wordpress?

    how to make css hover just only in a bullet area