css image&links
Tue Oct 08 2024 09:41:13 GMT+0000 (Coordinated Universal Time)
Saved by @signup #html #javascript
1.<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pink Frag Event Organizer</title> <style> /* External CSS for styling the menu and content */ body { font-family: Arial, sans-serif; /* Set font for the body */ margin: 20px; /* Add margin around the body */ background-color: #f9f9f9; /* Light background color */ } /* Link styles */ a { background-color: #00CED1; /* Default background color */ color: #000000; /* Default text color */ width: 100px; /* Width of the links */ border: 1px solid #000000; /* Border styling */ padding: 15px; /* Padding around text */ text-align: center; /* Center text */ text-decoration: none; /* Remove underline */ display: block; /* Display as block element */ margin: 5px 0; /* Add margin between links */ } /* Hover effect */ a:hover { background-color: #4CAF50; /* Background color on hover */ color: #FFFFFF; /* Text color on hover */ } /* Active effect */ a:active { background-color: #F0E68C; /* Background color when active */ color: #FF8C00; /* Text color when active */ } </style> </head> <body> <center> <h1>Pink Frag Event Organizer</h1><br> </center> <table width="100%"> <tr> <td width="20%"> <a id="home1" href="index.html">Home</a><br> <a id="events" href="events.html">Events</a><br> <a id="aboutus" href="aboutUs.html">About Us</a><br> <a id="contactus" href="contactUs.html">Contact Us</a><br> </td> <td width="80%" style="display: inline-block;margin-top: -20px;"> <h2>Welcome to Pink Frag Event Organizer</h2> <p>We are indulged in offering a Promotional Event Management. These services are provided by our team of professionals as per the requirement of the client. These services are highly praised for their features like sophisticated technology, effective results, and reliability. We offer these services in a definite time frame and at affordable rates.</p> </td> </tr> </table> </body> </html> 2.-----> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Wedding Album</title> <style> /* Styles for the images */ img { max-width: 100%; /* Ensures images are responsive */ height: auto; /* Maintains aspect ratio */ margin: 10px; /* Adds some space around images */ } </style> </head> <body> <h1>Wedding Album</h1> <img src="wedding.jpg" alt="Wedding Photo" /> <!-- First image without effects --> <img src="wedding.jpg" alt="Wedding Photo in Grayscale" style="filter: grayscale(100%);" /> <!-- Second image with grayscale effect --> </body> </html>
Comments