r/csshelp • u/TevaUSA • Dec 24 '12
Creating a Header Menu with Custom Tab-Buttons?
I’ve been fiddling with my sandbox for the last couple of hours, and I cannot for the life of me figure out how to make a header menu, and change the tabs to look more like buttons. I want a header like /r/QCS, sans absolute positioning and I’d like the ‘tabs’ to have a custom button, positioned on the menu.
The closest I've gotten to what I want:
#header {
border-bottom: 40px solid rgb(53, 25, 82);
position: relative;
z-index: 99;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
I cannot for the life of me figure out how to move that down from the header-area and make it independent.
For the tabs, every time I change their background to my image, it comes out with a half-cut version of it. Which might be because the original is too large. This is what I get when I use this:
.tabmenu li a {
padding: 2px 6px 0px;
background-image: url(%%tabbg%%);
}
Any help would be appreciated.
View all comments
Show parent comment
1
u/gavin19 Dec 24 '12
When I tried it before the image was broken. It's fine now.
All I meant was that it's part of greater whole. There are some things that you can do with a few lines and that's it. To achieve what they have will require a fairly substantial amount of CSS. If you want to get there then I'll chip in no problem. I helped with the layout of that very sub when it 'opened' so it shouldn't be a problem.