CSS help.

Status
Not open for further replies.

Stalin

Some people are cunts, oh well.
Aug 17, 2013
67
11
Heyo Devbest.
I just began working on my portfolio and getting the main template done... kind of. I ran into this roughly 10 minutes ago and saw myself have a major brain fart. I'm trying to get the sidebar to overlap the header whilst maintaining everything's position. Instead of doing what I want it to do, it keeps the header the entire width of the page and sidebar remains underneath it. Also, for some reason, the page requires the viewer to scroll down when nothing is even there to scroll down upon to begin with. You can see what I'm talking about at

Sorry if my wording is a bit off, couldn't really think of a way to explain it.
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
This is more HTML help than anything. I take it this is what you want?

Change your HTML to this:
Code:
<div class="wrapper">
        <div class="sidebar">
        </div>
        <div class="main-column">
          <header></header>
            <div class="content">
              
            </div>
        </div>
    </div>

Although I'd change the syntax (don't use header tags imo). Think about it logically, class = main-column is all the right side of content, which is where you want the top bar, right?

Hope this helps.
 

Stalin

Some people are cunts, oh well.
Aug 17, 2013
67
11
This is more HTML help than anything. I take it this is what you want?

Change your HTML to this:
Code:
<div class="wrapper">
        <div class="sidebar">
        </div>
        <div class="main-column">
          <header></header>
            <div class="content">
            
            </div>
        </div>
    </div>

Although I'd change the syntax (don't use header tags imo). Think about it logically, class = main-column is all the right side of content, which is where you want the top bar, right?

Hope this helps.

Ahh yes, this makes much more sense than anything I was trying. Can't believe it was so simple :oops:
Thanks everyone for your responses.
Close thread please.
 
Status
Not open for further replies.

Users who are viewing this thread

Top