Jump to content

[Solved] Hiding Left & Right Hook when empty


Recommended Posts

Hi, I'm currently making a theme from scratch, i have a little problem

could anybody help me in pointing out what line in the css that point out to hide left & right column when they are empty?

I wanted the position to be like this
2iuw47n.jpg

But what I get is this
2808w2e.jpg

it seems like the left & right column still there even though there's no content.
I already copied all the header & footer tpl files
so I think the only problem left is in the css files

any help is very appreciated :)

Link to comment
Share on other sites

Thanks 4 the reply, I'll be using them on other pages, I only want to hide them on some pages (the ones that aren't using any left or right hook)
The problem is when I changed the theme to Presta, the left and right column disappear on that same page.
I check the header.tpl, it's the same with the presta header.tpl
I also follow the left and right div style from the presta (they also have a defined width)
so i'm guessing it's somewhere on the css, but I don't know which line that is :)

Link to comment
Share on other sites

It's solved, it's just a problem with one silly line!

on the left/right column div style:
DO NOT USE ANY TOP MARGIN/PADDING

that's the only problem, I looked for hours an the problem lies in 1 silly line!
after I delete it, ta da my left & right hook automatically hidden...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...