Welcome Guest, Not a member yet? Register   Sign In
access base_url() in stylesheet
#1

[eluser]ranjitbd[/eluser]
Code:
// how to access base_url() in stylesheet

// suppose the following class is in a css file

.mediatabs a:hover{
background-image:url(image/tabonbtn.gif);
}
// i want to set the base_url() before the image
#2

[eluser]derekmichaeljohnson[/eluser]
Structure your directories like so:

Code:
- Application
- Public
  - CSS
  - Images
  - JS
- System

Then in your CSS you can do this:

Code:
a {
    background-image: url(../images/something.png);
}




Theme © iAndrew 2016 - Forum software by © MyBB