The Joomla! Forum ™



Forum rules


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



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Center Module Content
PostPosted: Sun May 25, 2008 4:23 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 25, 2008 4:17 am
Posts: 2
If you visit my site (http://www.total-personal-security.com/), you will notice that all of the content within the modules is left-justified. how can i get the content in the ads, the google search, tps login, most popular articles to be centered?


Top
 Profile  
 
PostPosted: Sun May 25, 2008 11:33 am 
Joomla! Hero
Joomla! Hero

Joined: Sun Jun 25, 2006 12:12 am
Posts: 2853
Location: Salisbury, NC/USA (N. of Charlotte)
The layout looks good as it is. Centering, especially with lists, makes them more difficult to read. Personally, I'd leave things as they are.

_________________
http://www.200mphMedia.net
Author: Joomla 1.6 Picture Yourself Series book @ Amazon.com
Book also covers Version 1.7, 2.5, which had no notable/major user-side changes.


Top
 Profile  
 
PostPosted: Thu Aug 27, 2009 2:45 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Jan 10, 2009 7:56 pm
Posts: 195
Location: USA
I agree but how to center them in general? Like mine at expertsiq.com . I have an image rotator that would look better if it could be centered.. How can I do that with any module?

TIA

_________________
Thanks!
Cisco Training Videos www.ccieadvisor.com Online


Top
 Profile  
 
PostPosted: Tue Sep 08, 2009 4:31 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Jan 10, 2009 7:56 pm
Posts: 195
Location: USA
Have not found a good solution to this really. it still floats at the top.

_________________
Thanks!
Cisco Training Videos www.ccieadvisor.com Online


Top
 Profile  
 
PostPosted: Thu Jul 15, 2010 6:13 am 
Joomla! Intern
Joomla! Intern

Joined: Mon Dec 07, 2009 12:01 am
Posts: 62
hi all, took me ages to find out the answer for this one so I thought I'd share it if someone else needs it. VERY simple:

on index.php find the module you want to center, then put it between <center> </center>

example:
<center>
<jdoc:include type="modules" name="user1" style="none" />
</center>

problem is, this is a soon to be deprecated html tag, so does someone knows a better way using css?


Top
 Profile  
 
PostPosted: Sat Mar 05, 2011 5:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 30, 2010 3:26 am
Posts: 8
Hi, yes there is away to avoid using <center></center> in the html

in your template.css file add a div class as such:
div.centermodule
{
text-align:center;
}

Now in your index.php file replace the following text:
<center>
<jdoc:include type="modules" name="user1" style="none" />
</center>

By this:

<div class="centermodule">
<jdoc:include type="modules" name="user1" style="none" />
</div>

It works and won't become obsolete :)


Top
 Profile  
 
PostPosted: Thu Apr 07, 2011 8:45 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 07, 2011 8:44 pm
Posts: 1
I used this and it indeed worked, but how to I apply this to just one of the modules instead of all of them?


Top
 Profile  
 
PostPosted: Thu Jan 19, 2012 11:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 20, 2011 4:51 pm
Posts: 10
I know this is old, but I've been having this problem too. What I did was create a table and insert it in the column I wanted, and put spaces in the other column until I got it lined up. Not a great solution, but it worked.

_________________
Char

"Remember there's no such thing as a small act of kindness. Every act creates a ripple with no logical end.". Scott Adams


Top
 Profile  
 
PostPosted: Fri Jan 18, 2013 5:24 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 11, 2012 6:54 pm
Posts: 4
yes, and i have not done it yet but what comes to mind is to have some modules use a different template/css source, please someone elaborate on my thought here as i am struggling with this myself.


Top
 Profile  
 
PostPosted: Fri Jan 18, 2013 7:16 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 11, 2012 6:54 pm
Posts: 4
i edited the javascript js files of the Unite Revolution Slider module and got it to work. see here http://ecbiz129.inmotionhosting.com/~brickf6/

the module costs 14 dollars but is worth it, and i can send you the modified java file if you like, email me if you need it at davidhelptech@gmail.com you can get the module here: http://codecanyon.net/item/slider-revol ... themepunch

you have to use the iframe wrapper module to include it, and put it in as a html file. see my example here (help yourself to the source code) of a stripped down version of what the slider can do: http://ecbiz129.inmotionhosting.com/~br ... anner.html


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



Who is online

Users browsing this forum: No registered users and 5 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® Forum Software © phpBB Group