Issue
Just started building a website and its my first time using MAMP and CodeIgniter Framework. I am trying to get images from the CSS code to display but they are not showing up when I open the website in the localhost. My question is:
Do I need to put the images in a specific location in MAMP's docs? or is there something I am not configuring first?...(I bet its something tiny I have not done..) Just to note I have tried changing the URL and file location a few times but had no luck..
Here is the CSS code which links to the image I am trying to display, everything else works except the images are not displaying.
Please help.
#header {
overflow: hidden;
width: 1000px;
height: 50px;
margin: 00px auto 20px auto;
background: url(/Applications/MAMP/htdocs/website/application/views/images/img03.jpg) no-repeat right top;
}
Solution
background: url(/Applications/MAMP/htdocs/website/application/views/images/img03.jpg)
"localhost" points to htdocs, you must set starting the route from there
background: url(/website/application/views/images/img03.jpg)
can use with F12 if you use chrome if the correct path to the image
Answered By - John Paul Cárdenas
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.