Weather widget
How do I make an weather widget?
A simple weather widget.Based on http://drbl.in/eBAe by Monsters'Lab. What is a weather widget? How do you make a weather widget? This script and codes were developed by Nika Zawila on 15 October 2022, Saturday.
Weather widget - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Weather widget</title> <link href="//cdnjs.cloudflare.com/ajax/libs/weather-icons/1.2/css/weather-icons.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="widget"> <div class="widget__left-col"> <div class="widget__temperature">23</div> <div class="widget__city">Brussels</div> </div> <div class="widget__right-col"> <div class="widget__weather-icon"><i class="wi wi-day-sunny"></i></div> <div class="widget__attrs"> <div class="widget__attr"> <div class="widget__attr-icon"><i class="wi wi-sprinkles"></i></div> <div class="widget__attr-value">1.3</div> <div class="widget__attr-unit">mm</div> </div> <div class="widget__attr"> <div class="widget__attr-icon"><i class="wi wi-up-right"></i></div> <div class="widget__attr-value">10</div> <div class="widget__attr-unit">mph</div> </div> </div> </div>
</div>
</body>
</html>
Weather widget - Script Codes CSS Codes
@charset "UTF-8";
html, body { min-height: 100%;
}
body { background: linear-gradient(#61b2c3, #cae3dd); font: 16px 'Helvetica Neue', Helvetica, sans-serif;
}
.widget { width: 280px; height: 150px; position: absolute; top: 50%; left: 50%; margin-top: -75px; margin-left: -140px;
}
.widget__left-col { background: black; color: white; width: 160px; height: 150px; text-align: center; box-sizing: border-box; padding-top: 20px; float: left;
}
.widget__temperature { font-size: 64px; font-weight: 100;
}
.widget__temperature:after { content: '°'; position: absolute;
}
.widget__city { font-size: 18px; font-weight: 500; text-transform: uppercase;
}
.widget__right-col { background: #fff; width: 120px; height: 150px; float: left;
}
.widget__weather-icon { font-size: 60px; line-height: 1; text-align: center; box-sizing: border-box; padding: 23px 0 0; height: 105px;
}
.widget__attrs { background: #2AB2EA; height: 45px; color: white; font-size: 14px;
}
.widget__attr { width: 60px; box-sizing: border-box; padding: 10px 0 0 30px; position: relative; float: left; text-transform: uppercase; font-size: 12px;
}
.widget__attr-icon { font-size: 24px; position: absolute; top: 10px; left: 10px;
}
.widget__attr-value { font-weight: bold; font-size: 12px;
}
.widget__attr-unit { font-size: 8px;
}
Developer | Nika Zawila |
Username | nikazawila |
Uploaded | October 15, 2022 |
Rating | 3.5 |
Size | 2,790 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Dropdown menu | 2,700 Kb |
Mr. Rooster in CSS | 1,972 Kb |
Menu | 3,277 Kb |
Player | 142,669 Kb |
Credit Card Template | 16,362 Kb |
Dashboard Stats Component | 2,102 Kb |
Password reset form | 2,800 Kb |
Buttons with badges | 1,979 Kb |
Product backlog module | 2,488 Kb |
BEM Buttons | 4,265 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Responsive scrolling text | Ashdurham | 2,259 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
Getting Started | Viblast | 1,500 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Button shaking | SusanneLundblad | 2,227 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!