So I've got this page: http://stuckpixelstudio.com/sandbox/troubleshooting/example.html.
For some reason when you scale the browser window down, weird things start happening. I'm pretty sure it's because I don't completely understand relative positioning, because up until now I've been using absolute positioning. I just can't figure out why this is happening.
If you'll notice, the top green bar behaves the way I would like for the rest of the page to behave, where when it reaches the left side it stops and the right side gets covered up by the rest of the window, however, the rest of my content does not behave this way.
I also have a LOT of white space that shows up at the bottom. Not sure why that is either.
Also, I can't figure out for the life of me how to get the "Showing 1-10 of 20" to be on the left side, and the "Sort by" to be on the right side and still look right. Any time I've made this happen, the Sort by looks like it's trying to be on a new line.
Looks like you are making your layout much more complicated than it needs to be. You should give that "everything" div a static width and some padding, then all it's decendents can live inside of it without the need for all that crazy positioning. That will solved your green bar problem, anyway. I would advise getting more comfortable using floats for positioning as well, that is how you will be able to solve your "showing" and "sort by" issue.
Yeah, I'm sure it's all the relative positioning with negative values that's making things screwy. Your design could easily be accomplished with floats and it would prevent all of these issues. I'll admit floats are weird to work with at first, but once you get used to it they start to make sense :lol:
For your design I would do something like this (really simple, just as an example):
For some reason when you scale the browser window down, weird things start happening. I'm pretty sure it's because I don't completely understand relative positioning, because up until now I've been using absolute positioning. I just can't figure out why this is happening.
If you'll notice, the top green bar behaves the way I would like for the rest of the page to behave, where when it reaches the left side it stops and the right side gets covered up by the rest of the window, however, the rest of my content does not behave this way.
I also have a LOT of white space that shows up at the bottom. Not sure why that is either.
Also, I can't figure out for the life of me how to get the "Showing 1-10 of 20" to be on the left side, and the "Sort by" to be on the right side and still look right. Any time I've made this happen, the Sort by looks like it's trying to be on a new line.
Here's my HTML:
And here's my CSS:
Thanks guys.
For your design I would do something like this (really simple, just as an example):
Float .column_left and .column_right to the left, put some padding on #content to create the space from the edge and you're pretty much done :P