Skip to content

Instantly share code, notes, and snippets.

View momin-riyadh's full-sized avatar
🎯
Focusing

Momin Riyadh momin-riyadh

🎯
Focusing
View GitHub Profile
<form id="contact" name="contact" method="post">
<fieldset>
<label for="name" id="name">Name<span class="required">*</span></label>
<input type="text" name="name" id="name" size="30" value="" required/>
<label for="email" id="email">Email<span class="required">*</span></label>
<input type="text" name="email" id="email" size="30" value="" required/>
<label for="phone" id="phone">Phone</label>
<input type="text" name="phone" id="phone" size="30" value="" />
.nav-tab {
...
// instead of putting it on
border-right: 1px solid #424242;
&:last-child {
border-right: 0; // and then taking it off
}
// use CSS not() to only apply to the elements you want
&:not(:last-child) {
border-right: 1px solid #424242;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.date{
background: #8c8c8c;
padding: 5px;
margin-top: 10px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.date{
background: #8c8c8c;
padding: 5px;
margin-top: 10px;
@momin-riyadh
momin-riyadh / index.html
Last active October 25, 2015 14:48
Javascript [Date/Time(options)]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<p>Today Is :<br><span class="date"></span></p>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
@momin-riyadh
momin-riyadh / Bootstrap Navigation
Created November 8, 2015 09:59
Bootstrap Responsive Dropdown Menu
<!-- Bootstrap Navigation Start -->
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@momin-riyadh
momin-riyadh / Newsletter
Last active March 21, 2016 03:29
Newsletter/Email Signup form.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sign Up Form</title>
<style>
.mn-form {
width: 450px;
margin: 17% auto;
@momin-riyadh
momin-riyadh / wordpress svg.php
Last active March 23, 2016 07:13
Custom Wordpress SVG support // Add it on function php file
// SVG Support
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
@momin-riyadh
momin-riyadh / custom-d.css
Created April 6, 2016 05:14
Fonts Problem
@font-face {
font-family: 'GothamRounded-Bold';
src: url('mountnow.com/wp-content/themes/centric-pro/fonts/GothamRounded-Bold.eot?#iefix') format('embedded-opentype'), url('http://mountnow.com/wp-content/themes/centric-pro/fonts/GothamRounded-Bold.otf') format('opentype'),
url('http://mountnow.com/wp-content/themes/centric-pro/fonts/GothamRounded-Bold.woff') format('woff'), url('http://mountnow.com/wp-content/themes/centric-pro/fonts/GothamRounded-Bold.ttf') format('truetype'), url('http://mountnow.com/wp-content/themes/centric-pro/fonts/GothamRounded-Bold.svg#GothamRounded-Bold') format('svg');
font-weight: normal;
font-style:normal;
}
@momin-riyadh
momin-riyadh / nodeServer.js
Created November 17, 2016 05:02
nodeserver
var http = require('http');
var port = 3000;
var server = http.createServer(function (request, response) {
response.writeHead(200,{'content-type':'text/plain'});
response.write("Hello From Momin ! Server running");
response.end();
});
server.listen(port);
console.log('Server working !' + port);