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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Nucleus-XL Theme - Banners
-
- Rank: Expert
- Registered: Mar 15, 2003
- Last visit: Oct 21, 2009
- Posts: 1221
>"
."$block[content]"
Should be
>"
."$block[content]"
--
Zikula Themes -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 354
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....... -
- Rank: Expert
- Registered: Mar 15, 2003
- Last visit: Oct 21, 2009
- Posts: 1221
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 -
- Rank: Expert
- Registered: Mar 15, 2003
- Last visit: Oct 21, 2009
- Posts: 1221
There must be code in the module for the banners then.
Might want to post in the core modules and blocks forum.
--
Zikula Themes -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 13
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 :)
- Moderated by:
- Support
Users on-line
This list is based on users active over the last 60 minutes.
