Fork me on GitHub

Nucleus-XL Theme - Banners  Bottom

  • I am using the Nucleus-XL theme that I found at www.tangant.com. I have tried to get the original artist to respond but seems to be very busy.

    Basically what I need to do is take the contents of a given block and have the contents centered. This block contains my banners and just looks funny with them all the way to the left of the block.

    The code for the block that displays the banners is listed here:



    What part of this code do I need to change to have the contents, my banners, display in the center of the block?

    Joe Dunn
  • >"
    ."$block[content]"

    Should be

    >"
    ."$block[content]"

    --
    Zikula Themes
  • I thought I tried that before but gave it a go again. The posistion of the banner has not changed. It is still stuck on the left side. I viewed the source and it looks like it should center the content of the block but it doesn't.

    Any other ideas? I'm lost on this one.......
  • Code

    <?
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"$bgcolor4\"><tr><td align=\"center\">"
    ."<table border=\"0\" cellspacing=\"1\"
    cellpadding=\"3\"><tr><td background=\"themes/$thename/images/bloc_t_bg3.gif\" class=\"pn-blocktitle\" align=\"center\">"

    ."$block[title]</td></tr><tr><td bgcolor=\"$bgcolor1\" class=\"pn-blockcontent\">"
    ."$block[content]"
    ."<br /></td></tr></table></td></tr></table>";
    ?>


    Try that. Its a table within the table that is causing the problem.

    [/code]

    --
    Zikula Themes
  • Well, on the bright side I feel better because I couldn't figure it out either. On the bad side, it still doesn't work.

    Joe Dunn
  • There must be code in the module for the banners then.
    Might want to post in the core modules and blocks forum.

    --
    Zikula Themes
  • This might seem silly but I usually use this for centering block content:

    <center></center>
  • Which file would you suggest that change? I thought I had put <center> tags in every possible location in the HTML for the actual block. None of it worked.</center>
  • Have you tried this combination?
    That's what I meant!

    <center>
    </center>
  • Hi, sorry i havent responded to your question on my site, things have been crazy lately. Anyway, I believe you need to check the PN-blockcontent class in the CSS file for the theme. If I remember correctly, the alignment is set to justify for that class. Just copy the class, rename it something like banner, and change the text-align: justify; to text-align: center;. Of course don't forget to change it in the HTML to that name as well ;)

    I am not entirely certain that is the case, as I do not have access to the theme at this moment, but i'd say it's an 80% chance that will fix your alignment problem.

    God Bless,
    David Dyess II

    PS.
    If you have the alignment set in the td tag, you can probably just remove the line for alignment in the CSS class and not have to do anything else.
    Reminder: there are 2 CSS files to edit :)

This list is based on users active over the last 60 minutes.