0% found this document useful (0 votes)
13 views3 pages

HTML Css Showcase

The document is an HTML showcase demonstrating various CSS styles and properties. It includes styled elements such as boxes, tooltips, images, pagination, and buttons, utilizing CSS variables and responsive design. The layout adapts to different screen sizes, with features like column layouts and hover effects.

Uploaded by

losikeeregae0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

HTML Css Showcase

The document is an HTML showcase demonstrating various CSS styles and properties. It includes styled elements such as boxes, tooltips, images, pagination, and buttons, utilizing CSS variables and responsive design. The layout adapts to different screen sizes, with features like column layouts and hover effects.

Uploaded by

losikeeregae0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Showcase</title>
<style>
:root {
--main-color: #4CAF50;
--shadow-color: rgba(0, 0, 0, 0.2);
}

@property --angle {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}

body {
font-family: Arial, sans-serif;
padding: 20px;
background: linear-gradient(to right, #f8f9fa, #e0f7fa);
}

.box {
border: 10px solid transparent;
border-image: url('https://www.w3schools.com/cssref/border.png') 30 stretch;
background: var(--main-color);
color: white;
padding: 20px;
border-radius: 15px;
box-shadow: 5px 5px 10px var(--shadow-color);
margin-bottom: 20px;
}

.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}

.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}

.image-style {
display: block;
margin: 0 auto;
border-radius: 50%;
width: 150px;
height: 150px;
object-fit: cover;
filter: grayscale(60%) brightness(1.2);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
mask-image: radial-gradient(circle, white 70%, transparent 100%);
}

.pagination {
display: flex;
justify-content: center;
margin: 20px 0;
}

.pagination a {
color: black;
padding: 8px 16px;
text-decoration: none;
transition: background-color 0.3s;
}

.pagination a:hover {
background-color: #ddd;
border-radius: 5px;
}

.columns {
column-count: 3;
column-gap: 20px;
}

.button {
padding: 10px 20px;
background-color: var(--main-color);
border: none;
color: white;
border-radius: 10px;
cursor: pointer;
}

.button:hover {
background-color: #45a049;
}

* {
box-sizing: border-box;
}

@media (max-width: 600px) {


.columns {
column-count: 1;
}
}
</style>
</head>
<body>

<div class="box">This box has rounded corners, a border image, a background, and a shadow.</div>

<div class="tooltip">Hover over me


<span class="tooltiptext">Tooltip text</span>
</div>

<br><br>
<img src="https://via.placeholder.com/150" alt="Styled" class="image-style">

<div class="pagination">
<a href="#">«</a>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">»</a>
</div>

<button class="button">Styled Button</button>

<div class="columns">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec dapibus justo. Praesent finibus.</p>
<p>Vestibulum vel mauris nec nulla fermentum aliquet. Vivamus nec purus ac est luctus vehicula.</p>
<p>Aenean euismod, magna non facilisis fermentum, purus justo dictum ex, nec hendrerit nulla velit non
sem.</p>
</div>

</body>
</html>

You might also like