Welcome Guest, Not a member yet? Register   Sign In
Set Base URL to background image path in External CSS
#11

(06-25-2018, 12:58 AM)sanjaya Wrote:
(06-25-2018, 12:31 AM)Pertti Wrote:
(06-25-2018, 12:11 AM)sanjaya Wrote: It's not work...

Based on what you provided earlier, should work but what's the full URL, with domain, to the image?

This is directory: http://sghapps.tk/ui/assets/img/bg4.jpg

So CSS is local at http://localhost/projects/charity/assets.../admin.css and image is hosted on different domain alltogether?
Reply
#12

(06-25-2018, 02:32 AM)Pertti Wrote:
(06-25-2018, 12:58 AM)sanjaya Wrote:
(06-25-2018, 12:31 AM)Pertti Wrote:
(06-25-2018, 12:11 AM)sanjaya Wrote: It's not work...

Based on what you provided earlier, should work but what's the full URL, with domain, to the image?

This is directory: http://sghapps.tk/ui/assets/img/bg4.jpg

So CSS is local at http://localhost/projects/charity/assets.../admin.css and image is hosted on different domain alltogether?

No. I have hosted this app in this domain. I need to set it to it. 
Reply
#13

(06-25-2018, 02:58 AM)sanjaya Wrote: No. I have hosted this app in this domain. I need to set it to it. 

Ok, so either for local or for sghapps.tk - what are the absolute URLs for css file and image file?
Reply
#14

(06-25-2018, 02:32 AM)Pertti Wrote:
(06-25-2018, 12:58 AM)sanjaya Wrote:
(06-25-2018, 12:31 AM)Pertti Wrote:
(06-25-2018, 12:11 AM)sanjaya Wrote: It's not work...

Based on what you provided earlier, should work but what's the full URL, with domain, to the image?

This is directory: http://sghapps.tk/ui/assets/img/bg4.jpg

So CSS is local at http://localhost/projects/charity/assets.../admin.css and image is hosted on different domain alltogether?

 It should be base_url()/ui/assets/img/bg4.jpg
Reply
#15

(06-25-2018, 02:32 AM)Pertti Wrote:
(06-25-2018, 12:58 AM)sanjaya Wrote:
(06-25-2018, 12:31 AM)Pertti Wrote:
(06-25-2018, 12:11 AM)sanjaya Wrote: It's not work...

Based on what you provided earlier, should work but what's the full URL, with domain, to the image?

This is directory: http://sghapps.tk/ui/assets/img/bg4.jpg

So CSS is local at http://localhost/projects/charity/assets.../admin.css and image is hosted on different domain alltogether?

 It should be base_url()/ui/assets/img/bg4.jpg
Reply
Reply
#17

(06-25-2018, 05:04 AM)Pertti Wrote: So:
http://sghapps.tk/ui/assets/img/bg4.jpg
http://sghapps.tk/projects/charity/asset.../admin.css

?



I need do this base url as static suitable for all domain without changes in css file.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB