How can I create a link to a local file on a locally-run web page?

I’d like to have an html file that organizes certain files scattered throughout my hard drive. For example, I have two files that I would link to: C:\Programs\sort.mw C:\Videos\lecture.mp4 The problem is that I’d like the links to function as a shortcut to the file. I’ve tried the following: <a href=”https://stackoverflow.com/questions/18246053/C:\Programs\sort.mw”>Link 1</a> <a href=”C:\Videos\lecture.mp4″>Link 2</a> … Read more

What is the difference between id and class in CSS, and when should I use them? [duplicate]

This question already has answers here: What’s the difference between an id and a class? (17 answers) Closed 5 years ago. #main { background: #000; border: 1px solid #AAAAAA; padding: 10px; color: #fff; width: 100px; } <div id=”main”> Welcome </div> Here I gave an id to the div element and it’s applying the relevant CSS … Read more

Stretch background image css?

<td class=”style1″ align=’center’ height=”35″> <div style=”overflow: hidden; width: 230px;”> <a class=”link” herf=”” onclick=’topic(<?=$key;?>)’> <span id=’name<?=$key;?>’><?=$name;?></span> </a> </div> </td> This is my CSS script .style1 { background-image: url(‘http://localhost/msite/images/12.PNG’); background-repeat: no-repeat; background-position: left center; } I want to stretch the background-image all over the <td> cell 5 Answers 5