Joomla Module Class Suffix

Discussion in 'Joomla' started by Emperor, May 31, 2006.

  1. #1
    I’m having some trouble understanding exactly how this works. I want to center my adsense and banner extensions, how would I go about doing this with Module Class Suffix. I’ve been reading threads on the joomla and mambo forums but I can’t seem to get it to work??? :confused:
     
    Emperor, May 31, 2006 IP
  2. psyberweb

    psyberweb Peon

    Messages:
    585
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    in your CSS file:

    do,
    /** This will be for the whole module
    table.moduletable(modulename) {
    }
    /** This will be for the content
    table.moduletable(modulename) td {
    }
    /** This will be for the title
    table.moduletable(modulename th{
    }


    So an example of a module for Polls looks like this:

    table.moduletablepolls th{
    padding:5px;
    font-family:Verdana, Helvetica, sans-serif;
    width : 100%;
    }
    table.moduletablepolls td{
    font-family:Arial,Helvetica, sans-serif;
    font-size:11px;
    padding-bottom:4px;
    }
    table.moduletablepolls{
    border:1px solid #000000;
    background:#ffffff;
    height:180px;
    width:160px;
    }

    Make sure to edit your module and put the module suffix for that.

    For aligning it to center , you can try

    table.moduletable(modulename) {
    text-align:center;
    }

    Hope it works though, just did a scratch. :D
     
    psyberweb, Jun 12, 2006 IP
    Emperor likes this.
  3. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply it really helped a lot. :D
     
    Emperor, Jun 14, 2006 IP
  4. tvnation

    tvnation Peon

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for this
     
    tvnation, Jul 3, 2007 IP
  5. jcss

    jcss Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    If you are willing to have a tables less design, and your layout is css based, you should load your modules with switch parameter = -2 or -3.

    mosLoadModules('left',-2)

    This way, your modules will be loaded inside a DIV rather than a TABLE tag and it helps you keep your layout table-less.

    so you should define those classes (Posted by psyberweb) for DIV tag as well.
     
    jcss, Jul 3, 2007 IP