Active Nav Item On Top
How do I make an active nav item on top?
This answers stack overflow question: http://stackoverflow.com/questions/36826423/unordered-list-list-item-position. What is a active nav item on top? How do you make a active nav item on top? This script and codes were developed by Andy Hoffman on 24 August 2022, Wednesday.
Active Nav Item On Top - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Active Nav Item On Top</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul> <li>Item 1</li> <li class="active">Item 2</li> <li>Item 3</li>
</ul>
</body>
</html>
Active Nav Item On Top - Script Codes CSS Codes
* { margin: 0; padding: 0;
}
ul { width: 10em; border: 1px solid gray; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column;
}
li { list-style: none; padding: 1em; border-bottom: 1px solid gray;
}
li[class=active] { order: -1; background: rgba(255, 0, 0, 0.3);
}
li[class=active]:before { content: "I am active =>"; left: -7em; position: absolute;
}
Developer | Andy Hoffman |
Username | antibland |
Uploaded | August 24, 2022 |
Rating | 3 |
Size | 1,661 Kb |
Views | 38,456 |
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 |
Accessible Tooltip | 2,912 Kb |
Swaying Vertical Tabs | 3,126 Kb |
Full page image fade in | 1,849 Kb |
Working with jQuery Marquee plugin | 2,126 Kb |
Skewed Frame | 1,874 Kb |
DumbLock Security | 3,093 Kb |
Battle Donald J. Trump | 9,758 Kb |
Trusted Clicks | 3,314 Kb |
A Pen by Andy Hoffman | 2,037 Kb |
Pure CSS Flexbox Navigation | 3,012 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 |
SVG Text Masking | JMChristensen | 2,141 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Ghost | Mghayour | 11,738 Kb |
Background Images | Jooonebug | 2,100 Kb |
Scifi-style Interative Form | Aaronchuo | 4,566 Kb |
About Mazano | Kiti | 2,585 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 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!