This may sound quite silly, but I have no idea how to make a thin line smaller then 1px.
What I am looking for is something like this:
If you do:
.nav-bar {
border-bottom: 1px;
}
Run Code Online (Sandbox Code Playgroud)
It's almost twice, if not three times as thick. As you are also probably aware, doing 1em would just round up to 1px.
Anyone have any ideas?
.nav-bar {
border-bottom: 1px solid rgba(255,255,255,.25);
}
Run Code Online (Sandbox Code Playgroud)
This generates a white 1px line that has an opacity of 25%. This is about the same as your example page. Transparency is the key here; the line can’t be thinner than 1px.
body {
background: black;
}
.nav-bar {
width:100%;
height:100px;
border-bottom: 1px solid rgba(255,255,255,.25);
}Run Code Online (Sandbox Code Playgroud)
<div class="nav-bar">Run Code Online (Sandbox Code Playgroud)