Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Minnesota
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS question, what does url do?

    This is from a Site I now have to maintain. In the code below what does or what is this for, the url porttion on the import and backgroud images? I have never seen it used before and could not find any thing on it.


    Code:
    @import url("assets/fp.css");
    #corral {
    	height: 463px;
    	width: 319px;
    	position: absolute;
    	left: 55px;
    	top: 0px;
    }
    #leftlines {
    	background-image: url(assets/hm_stripe_bg.gif);
    	background-repeat: repeat-y;
    	position: absolute;
    	height: 463px;
    	width: 55px;
    	left: 0px;
    	top: 0px;
    }
    #mainblock {
    	background-image: url(assets/hm_grad_bg.gif);
    	background-repeat: repeat-x;
    	position: absolute;
    	height: 522px;
    	width: 100%;
    	left: 0px;
    	top: 78px;
    }

    Thanks
    J.C.
    To learn is a good thing and today I hope to learn somthing new!

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It acts like the "src" attribute of an <img/> tag in that it specifies where the CSS file and background image are located.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •