Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 9:10 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Thu Nov 09, 2006 11:44 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Mar 03, 2006 3:52 pm
Posts: 1018
Location: Macon, GA
I have been fiddling with this for some time. Pretty neat template and for the most part will do what I need.

I am curious about something though.

sidebar and content are wrapped by main body and i understand why they are percentage of the main body to be the same width as the right column when published

however i find it odd that if you change the percentage of the left column, keeping in proportions with how the template is set up that it will not decrease in size when the right module is published.

for instance,

the mainbody is 80% of the wrap when right is published

left is 33.5% and content is 66.5% of the mainbody.

so if i decrease left to 23.5% and increase mainbody to 76.5% I would expect that when the right column is not published that left would decrease to take up 23.5% of mainbody but it stays the same size.

any ideas on this one?

_________________
http://www.mychemistrytutor.com/forums

http://www.netentropy.com/blog


Top
   
 
Posted: Sat Nov 11, 2006 12:14 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Dec 21, 2005 10:32 pm
Posts: 644
The pecentages refer to the imediate parent of the item. The way you have it set up, the mainbody will always be 80% of the wrap, regardless of wheather you publish the right column (#sidebar-2)
and publishing it or not will therefore have no effect on either #sidebar or #content.

To make the right column collapse you can change your template index.php file so it says something like:

  if ( mosCountModules( 'right' ) ) {
?>

} else {
?>

}
?>






  if ( mosCountModules( 'right' ) ) {
?>

}
?>

then make a new selector named #main_body_full
in your stylesheet to give the proper attributes for when the right column is not displayed.

Note that you also need to drop your width percentages a point in order to account for the border width.
Also, you have an extra # sign in your ##main-body  selector.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group