CSS question/help
- Started
- Last post
- 5 Responses
- seansuth
So how does one achieve the black hr bar that spans across the top of the site?
http://cavalieressentials.com/
http://everything-type-company.c…
Can someone help me?
- mikotondria30
just put a
<div class="border-top"><div> at the top of your markup, after the body tag, then in your css:.border-top {
position: fixed;
border-top: solid 4px #000;
top: 0px;
left: 0px;
width: 100%;
z-index: 2;
}
- doktornomore0
From the source: <div id="topborder"></div>
For specific details, however, in which CSS file it resides I have no clue - do some hunting and pecking and you'll figure it out... jas - found it:
div#topborder {
height: 3px;
width:auto;
background-color:black;
}There you go...
- seansuth0
So how come when I put in the code, it won't allow my site to scroll down? If I could speak with someone through email it may be easier to explain...
- seansuth0
When I put in fixed, it stays at the top but my site won't scroll. When I put in absolute, it's there but it scrolls down with the site, which I don't want.
- seansuth0
Nvermind, got it! I needed to input this - overflow: auto;