What are -moz- and -webkit-? [duplicate]

This question already has answers here: Why do browsers create vendor prefixes for CSS properties? (2 answers) Closed 2 years ago. -webkit-column-count: 3; -webkit-column-gap: 10px; -webkit-column-fill: auto; -moz-column-count: 3; -moz-column-gap: 10px; -moz-column-fill: auto; I am a beginner at CSS and when I was looking at some CSS code the other day, I found these lines. … Read more

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

Adding asterisk to required fields in Bootstrap 3

My HTML has a class called .required that is assigned to required fields. Here is the HTML: <form action=”/accounts/register/” method=”post” role=”form” class=”form-horizontal”> <input type=”hidden” name=”csrfmiddlewaretoken” value=”brGfMU16YyyG2QEcpLqhb3Zh8AvkYkJt” /> <div class=”form-group required”> <label class=”col-md-2 control-label”>Username</label> <div class=”col-md-4″> <input class=”form-control” id=”id_username” maxlength=”30″ name=”username” placeholder=”Username” required=”required” title=”” type=”text” /> </div> </div> <div class=”form-group required”><label class=”col-md-2 control-label”>E-mail</label><div class=”col-md-4″><input class=”form-control” id=”id_email” … Read more