bustin Posted July 1, 2011 Share Posted July 1, 2011 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 thisBut what I get is thisit seems like the left & right column still there even though there's no content.I already copied all the header & footer tpl filesso I think the only problem left is in the css filesany help is very appreciated Link to comment Share on other sites More sharing options...
tomerg3 Posted July 1, 2011 Share Posted July 1, 2011 They probably have a defined width, which is why they are taking the space (even when empty).Do you need to use them anywhere on any other page, or do you want to get rid of them completely? Link to comment Share on other sites More sharing options...
bustin Posted July 2, 2011 Author Share Posted July 2, 2011 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.tplI 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 More sharing options...
bustin Posted July 2, 2011 Author Share Posted July 2, 2011 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/PADDINGthat'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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now