sairfan1 Posted February 26, 2010 Share Posted February 26, 2010 hias mostly our pages are located in different folders, it becomes hard to give path to css/js and other files with dir ../ back dir, is there some way to get root path, the main directory?? to assign same path every where, moreover ~ sign is used to get what kind of path??thanks in advance Link to comment Share on other sites More sharing options...
ShadowMage Posted February 26, 2010 Share Posted February 26, 2010 Use a forward slash '/' in front of your urls to get your website root.src='/folder/subfolder/file.css' Link to comment Share on other sites More sharing options...
Synook Posted February 27, 2010 Share Posted February 27, 2010 On UNIX systems, the tilde refers to the current user's home directory. It has no meaning if used on a web page, however. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.