× Joomla Facebook Connect support forum

Topic-icon Definable dimensions

Active Subscriptions:

None
15 years 2 months ago #8195 by fb_100000214934509
I know a few of the modules have definable module dimensions but I'm wondering if it would be possible to have the like module to have a predefined height and width. I know it takes a bit of time for the FB modules to load after the page has loaded but I would prefer if my page didn't have to re-size itself once that code was loaded.
The topic has been locked.
Support Specialist
15 years 2 months ago #8200 by alzander
Replied by alzander on topic Definable dimensions
All of our modules (or tags) have a div around them, which you can use to specify the size for all of those modules. So you could add something like the following to your CSS file:
.jfbclike {
height: 50px;
width: 200px;
}

This will do it for every like box, which may be good or bad. For even more flexibility, if you're using the actual modules (not the tags), you can use the 'Module Class Suffix" parameter to allow you to set the height/width for an individual (or multiple) instances of a module. Simply use a suffix of "-mylikebutton1", for example, and you can add the following to your CSS file:
.moduletable-mylikebutton1 {
height: 50px;
width: 200px;
}

The module class suffix is a feature of Joomla that most modules use, and are great to take advantage of if you never knew what it was for :)

Hope that helps, but as always, if you have questions, just let us know!
The topic has been locked.