My entire text in aspx page font be in arial. How to change it in css [closed]

Tags: css

Problem :

My aspx page font is need to be changed . I tried this :

 html, body {
    margin: 0px;
    padding-left: 15px;
    font-family: arial;

its giving me the font in san sarif

Solution :

You have the CSS, so just change the font-family to that of what you are looking for. You didn't mention what font you want... but here are a few common settings...


  • font-family:Arial, Helvetica, sans-serif
  • font-family:Tahoma, Geneva, sans-serif
  • font-family:Verdana, Geneva, sans-serif


  • font-family:"Times New Roman", Times, serif
  • font-family:Georgia, serif

And to add... you mentioned your code is giving you a sans-serif font. Arial IS a sans-serif font, so this would be as expected.

    CSS Howto..

    How to change the colors of HTML form elements displayed in UIWebView?

    How to do page load in jQuery?

    How to make full window canvas in GWT?

    I want to bring css for select option. how to write for this image, sample output like this

    How to force Chrome browser to reload .css file while debugging in Visual Studio?

    How do I get
    margin working?

    How to center navigation bar items CSS

    How to draw outside borders only in thead

    Yahoo's new blur effect in web mail - How?

    How to fade in a specific CSS property

    How to change the content value of iconmoon font?

    css show separator icon for icons

    Overlay image to show like panorama [closed]

    show the div inside that div next to it

    How do i create custom grid class in Bootstrap for lg as well as xs screen size?

    How to set inline css width using model values in c#, mvc

    How to include .css file in smarty template file?

    How to smooth the moving of background image?

    How can I apply my CSS stylesheet to an RSS feed

    How do I make a symmetrical downward pointing angle that is greater than 90 degrees using CSS?

    How can I have a responsive height with absolutley position child elements

    How should I set a custom style on a object that is a gwt component?

    How to apply css selector in ZK

    How to assign CSS to images which have specific extension, height and width?

    IOs Cordova long-press shows text-select magnifying glass even with text-selection disabled, how to remove?

    How to stop text from overlapping CSS?

    How to slide down to show content of DIV using CSS/jQuery?

    How can i spin an image -360 degrees and +360 degrees using the -webkit and jQuery?

    How to make `margin: top;` based on browser height?

    How to change the position of image in search box in css?