Welcome Guest, Not a member yet? Register   Sign In
HELP: subdomain how would i access my images?
#3

[eluser]dippy[/eluser]
[quote author="Aken" date="1347345543"]Just use an absolute path.

Code:
background: url('/assets/images/hometop.jpg') no-repeat;

I should say, though, that your CSS should be consolidated into a single CSS file, and not generated in individual pages.[/quote]

I totally agree. I will not use the style in the view page anymore. I was just testing something and I admit I was being lazy and put it in the view file.

Now, in my CSS file that is in “assets/css” the following css should work fine and the image will show?

Code:
#header_image {
    position:absolute;
    background:url('../images/hometop.jpg') no-repeat;
    height:134px;
}

Where my images are in “assets/images” correct?

Thanks again for your help and reply!


Messages In This Thread
HELP: subdomain how would i access my images? - by El Forum - 09-10-2012, 10:48 PM
HELP: subdomain how would i access my images? - by El Forum - 09-10-2012, 11:39 PM
HELP: subdomain how would i access my images? - by El Forum - 09-11-2012, 12:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB