JPG to PNG Converter
Below is a complete responsive code for a JPG to PNG Converter tool using HTML, CSS, and JavaScript. This code allows users to upload a JPG image, converts it to PNG format, and provides a download link for the converted image.
```html
JPG to PNG Converter
```
```css
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f3f3f3;
}
.container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
color: #333;
}
input[type="file"] {
display: block;
margin: 20px auto;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
a {
display: block;
margin-top: 20px;
padding: 10px
No comments