How to change URL inside CSS?


Tags: html5,css3

Problem :

i would like to change the url inside my css, point to a file inside my system. ie,

 @font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}

i want to change src to like this

 src: url(web/font/mycustomfont.ttf) format("truetype");

is there any way to achieve this?



Solution :

Haven't you answered your own question here? Taken from http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

@font-face {
font-family: myFirstFont;
src: url(sansation_light.woff);
}

    CSS Howto..

    How to resize animated gif with HTML/CSS?

    How to use 100% CSS background-image with scrolling content?

    How to add materialize css to an angularjs project?

    How to make a parent --> node relationship in css?

    Show an image from b&w to color as if it were loading (left to right)

    How to remove
     tag

    How can I center a table relative to one column in HTML/CSS?

    How to position absolute in scrollable area? (Css)

    How to override inline css through javascript?

    how to: dynamic navigation bar size depending on dynamic image size?

    How to enable background printing by default using css or javascript?

    How to apply bootstrap css to all buttons

    How does the following line of JavaScript work?

    How can I see “:hover” and “:active” properties of elements on a webpage? [duplicate]

    How to add a background to a boostrap grid row (including padding!)?

    How to disable flow around elements in table (CSS)

    How to change tinymce scrollbar color?

    How to add circle shape to CSS button

    How does this drop-down have the ^ shown?

    how to make this (table) using divs and css

    jQuery + CSS: How to scroll smooth, regarding a fixed header?

    Three inline divs: how to make display all three inline OR three block (NOT 2 + 1)?

    How to make content appear under absolute position

    How to use CSS function instead of LESS function?

    How to align a background image to bottom of table cells in css?

    How do I show annotations on my Google Chart that extracts data from a Google Spreadsheet?

    How to get a working CSS zigzag border?

    how to bring ul element to the center of the div? CSS

    how to change the css in td on mouse click using javascript

    How can I get this style effectv with css or jquery?