• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Losing Styles and Images relative to document path

#2
[eluser]Lone[/eluser]
What you need to do is place base_url in front of the link eg.

Code:
<link rel="stylesheet" href="<?=base_url();?>assets/styles.css" type="text/css" />

Remember base_url will already have a trailing slash (as setup in your application/config/config.php file)


Messages In This Thread
Losing Styles and Images relative to document path - by El Forum - 06-14-2008, 10:53 PM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 01:12 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:45 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:50 AM
Losing Styles and Images relative to document path - by El Forum - 08-22-2008, 07:16 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.