3 replies [Last post]
zyconn
zyconn's picture
Offline
newbie
Last seen: 9 years 45 weeks ago
Timezone: GMT+2
Joined: 2012-09-16
Posts: 10
Points: 15

Hello,

I'm using tumblr and develope my own themes. I'll now try to optimize my current theme, remove unnecessary stuff and so on.

My question: Is there an alternate way to position two containers next to each other?

I'm currently using a fixed width on my content/sidebar and float left or right to position these elements within a container. Therefor I need an extra container around them where I can apply the clearfix-class to clear my content/sidebar. I want to remove this useless container and now I'm looking for a method not to float the two containers.

Another way is position:absolute on the sidebar - what do you guys think is the better solution?

Here is the url of my blog where you can see the theme in action: http://infiniteamplitudes.tumblr.com/

If you want the plain source code, I'll provide it, but I believe it's easier by seeing the result (tumblog).

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi zyconn, You should be able

Hi zyconn,
You should be able to get what you need using floats and clear:both on the footer.

You could position the right sidebar absolute if you like, or look into other not so well supported display properties.

zyconn
zyconn's picture
Offline
newbie
Last seen: 9 years 45 weeks ago
Timezone: GMT+2
Joined: 2012-09-16
Posts: 10
Points: 15

Hey Tony,Thank you for your

Hey Tony,

Thank you for your reply. That works and I believe it's one of the easiest ways to accomplish what I had in mind.
Well I don't like to position thinks absolutely, because it leads to some problems now and then. I only use it to render small things out of boxes (like if one wants to display a post date on an article on the left side of the article container).

PS: I hope it's okey to ask some further questions related to my theme in this topic. If not, should I create a new topic for each "new" question?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

It would be best to start a

It would be best to start a new thread with this question, many people will see this one as answered.