Welcome Guest, Not a member yet? Register   Sign In
CSS: background: transparent url(/images/menu_background.gif)
#1

[eluser]sawatdee[/eluser]
I am using css for my menu as such:
Code:
.horizontal_menubar
{
    background: #000000 url(/images/menu_background.gif) top left repeat-x;
}
However, my images directory is under my application directory. The following code works, but there is something about having my system directory in my css file that I don't like.
Code:
.horizontal_menubar
{
    background: #000000 url(/system/application/images/menu_background.gif) top left repeat-x;
}
I could also make my css file a php file and reference my images as URLs using site_url (), but that is a little bit of a hassle.

Has anyone else found a more graceful way to do this?


Messages In This Thread
CSS: background: transparent url(/images/menu_background.gif) - by El Forum - 02-07-2008, 04:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB