0

I still don't understand what relative and absolute means? someone can explain it to me? thanks.

23rd Sep 2015, 1:14 PM
Gil
7 Antworten
0
If the files are in the same directory then u give the relative address which means that ur starting point will be the directory where the html file is located then u mention the folder in that directory that contains the .css file then the name of the file itself. Now if css file is not in the same directory then u should start with something like : /root/SoloLearn/example.css -> for linux based systems OR: /c/SoloLearn/example.css
8th Jan 2016, 3:04 PM
B.S.D
0
Basically it talks about the path that what path u r giving to fetch data from server or any other database.. If u will give absolute path on your webpage People who will be bit tricky the will surely access ur server's others files too.. Example of absolute path.. A.B.C.D.E.F.G In relative path u will not hav to give full path of ur file.. EXAMPLE OF RELATIVE PATH. A.B.......G Hope i have helped you. :)
16th Feb 2016, 4:33 AM
Azhar
0
absolute address is a full address like no6-3rd floor-amor bld-city-country,if someone reads it even in another country can find you. in web it is like http://www.sololearn.com/download/android/csslearn/learncss.pk but when you use relative addresses, you are trying to address one place from where you are now. for example you want say your friend address base on your address,so you say next alley-second home.in this kind of addressing someone can find address if he knows your address first in web programing when using relative addresses, you are addresing base on html page place. if the file you want address is in the same directory whit html file just call file.* like main.jpg if the file is in upper directory for each upper directory use ../ and then call the file like ../main/main.jpg and if it is in a sub folder just call that folder and the file like pictures/narsis.jpg
26th Feb 2016, 2:35 PM
amir nassaji
amir nassaji - avatar
0
Relative paths: /images/june/image.png Absolute paths: http://www.mysite.com/images/june/image.png You'll use relative links only when linking to pages or files within your site. You must use absolute links if you're linking to a location on another website. Is that simple.
15th Jun 2016, 5:42 PM
Gabriel Alejandro Lopez Garrido
Gabriel Alejandro Lopez Garrido - avatar
0
I know this is an old question but I find it funny how everyone is talking about paths when the topic is CSS, absolute and relative.. What should come in mind in the first place is positioning.
26th Jul 2016, 2:26 AM
ZinC
ZinC - avatar
0
thanks for all the answers! and zinC youre right, few days ago I went further with this course. Found out today I had posted this long time ago. Totally forgot it cause of school work and exams, but I already understand it. though thanks everybody!
26th Dec 2016, 8:20 PM
Gil
0
w3schools tutorial on position explains this nicely.
22nd Jul 2018, 1:45 PM
kp kalia
kp kalia - avatar