09-10-2012, 10:48 PM
[eluser]dippy[/eluser]
Hello. I need some help/advice here with showing an image.
I have a subdomain which looks like this: http://subdomain.domain.com
Now i have my base_url() is set like this:
Now, in my CSS file that is in "assets/css" the css should be the following:
where my images are in "assets/images"
CORRECT?
Now, I am testing some css that uses an image and I am using a css/style sheet inside my view file. How would I show an image then?
Here is my file structure:
-root
-application
-codeigniter folders
-assets
-images
-css
-images
-system
-.htaccess
-index.php
-robots.txt
Should it be the following:
Please help me and let me know if i am correct at all here?? If i am not please let me know where I went wrong because my image is not showing up.
Any help would be great!!
Thank you in advance!
Hello. I need some help/advice here with showing an image.
I have a subdomain which looks like this: http://subdomain.domain.com
Now i have my base_url() is set like this:
Code:
$config['base_url'] = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '')
.'://'.$_SERVER['HTTP_HOST'].str_replace('//','/',dirname($_SERVER['SCRIPT_NAME']).'/');
Now, in my CSS file that is in "assets/css" the css should be the following:
Code:
#header_image {
position:relative;
background:url('../images/hometop.jpg') no-repeat;
height:134px;
}
CORRECT?
Now, I am testing some css that uses an image and I am using a css/style sheet inside my view file. How would I show an image then?
Here is my file structure:
-root
-application
-codeigniter folders
-assets
-images
-css
-images
-system
-.htaccess
-index.php
-robots.txt
Should it be the following:
Code:
#header_image {
position:relative;
background:url('../../assets/images/hometop.jpg') no-repeat;
height:134px;
}
Please help me and let me know if i am correct at all here?? If i am not please let me know where I went wrong because my image is not showing up.
Any help would be great!!
Thank you in advance!