Understanding Joomla CSS in 5 Minutes
Understanding Joomla CSS in 5 Minutes
option=com_content&task=v...
This tutorial will give you an overview of Joomla / Mambo CSS styling. All of the basic css elements of Mambo is
put into a clean and easy-to-read picture which will help you to remember in a quickest time. The CSS elements
here are updated with the latest version of Joomla / Mambo and I strongly believe that they can be applied in
coming Joomla 1.0.X / Mambo 4.5.X releases.
installdir/templates/
|
+- template_name/
|
+- index.php
|
+- template_thumbnail.png
|
+- templateDetails.xml
|
+- css/
||
| +- template_css.css
|
+- images/
IntelliJ IDEA
Java IDE with advanced HTML/CSS/JS editor for hardcore
web-developers.
www.jetbrains.com
Buy Css
See a list of trusted online stock trading services now.
Stocks.StockTape.com
digital camera
links to kodak digital camera information
www.disasterkit.info/kodakdi
Joomla -Mambo Professional Templates Club -JoomlArt.com -Jo... http://www.joomlart.com/index2.php?
option=com_content&task=v...
3. Break down a little further
By now, you have had an overview of Joomla / Mambo CSS, I list here all the CSS elements of Joomla 1.0.X /
Mambo 4.5.X with detail explanation so that you can understand further. This is a blank (no style is set) but totally
complete css file of a standard Joomla / Mambo template.
You can highlight and copy then paste into your text editor or download the sample CSS file (right click >> save
target as). Most of css files of many templates do not include all Joomla / Mambo CSS elements (even the default
ones). So my Mambo standard css file will be a good place for you to start from.
/* STANDARD COMPLETE CSS FOR JOOMLA 1.0.X and MAMBO 4.5.X TEMPLATES */
/* By Dinh Viet Hung (C) http://www.joomlart.com: Free templates and Professional Templates Club */
/* DEFAULT SETTINGS */
/* Below are default settings are used when no other style has been defined.*/
body {}/*Style for the body tag of your website, controls font family page background, etc.*/
p {} /*formatting all <div> (division) items. This is a catch-all that only applies when no other
style has been defined.*/
td {} /*formatting all
<td> items. This default setting is used when no other style has been defined.*/
tr {} /*formatting all
<tr> items. This default setting is used when no other style has been defined.*/
ul {} /*formatting all UL (unordered list) items. This default setting is used when no other style
has been defined.*/
/* FORMS SETTINGS */
.button {}
.inputbox {}
.search {} /*formatting the <div> which holds search items: inputbox, search button...*/
/* NAVIGATION/MENU SETTINGS */
#active_menu {} /* this styling is for the menu item when it is active, even in main/sub position*/
ul#mainlevel-nav {}
ul#mainlevel-nav li{}
#mainlevel-nav a:link {}
#mainlevel-nav a:visited{}
#mainlevel-nav a:hover {}
a.sublevel{} /* this styling is for menu items that HAS A PARENT */
a.sublevel:link {}
a.sublevel:visited {}
a.sublevel:hover {}
.pagenavbar {} /*Sets the style for the footer navigation ("<< Start < Prev Next > End >>")
when they do not appear as hyperlinks (when only a few articles exist).*/
.pagenavbar:link {} /*Style for the footer navigation ("<< Start < Prev Next > End >>") when
they become hyper links*/
.pagenavbar:visited {}
Joomla -Mambo Professional Templates Club -JoomlArt.com -Jo... http://www.joomlart.com/index2.php?
option=com_content&task=v...
.pagenav {} /* as the name implies, this is for formatting texts for those "<< Start < Previous 1
Next > End >>" links */
a.pagenav:visited {} a.pagenav:hover {}
a.readon:link {} /*Style for the "Read More" link that is displayed for large content items*/
a.readon:hover {}
a.readon:visited {}
.latestnews ul {} /*Style for latest news list - by default, latest news is user1 module*/
.latestnews li {}
.mostread ul{} /*Style for most popular list - by default, most popular is user2 module*/
.mostread li{}
a.category:link {} a.category:hover {}
a.category:visited {}
.componentheading {}/* Title of the component being used to display the content.*/
.contentheading {} /* Title of the content, article, etc. being displayed.*/
.contentpane {} /* Table that holds all non-article information (components,
category lists, contact forms, etc).*/
.contentpaneopen {} /* Table that holds the actual text for an article.*/
.contentpagetitle {} /*Title of articles*/
a.contentpagetitle:hover {} /*Title of articles when appeare as links */
a.contentpagetitle:link {}
a.contentpagetitle:visited {}
.sectiontableentry1 {} .sectiontableentry2 {}
/* MISCELLANEOUS */
/* Dates , Authors*/
.createdate {} /* For styling the date the content/articles are created under contents title */
.modifydate {} /* Formating "Last updated on" text at the end of articles/contents */
.small {} /* Formating "Written by:...." text */
.smalldark {}/*Found in poll result page, for " Number of Voters".. text */
/* Polls */
.poll {} /* format the td of poll table */
.pollstableborder {} /* set the border properties of the polls voting table */
/* Weblinks */ .weblinks{} /* well.. to format the link's titles under the "Weblinks"
section on the frontend */ a.weblinks:hover {} /* same as above, but for link with
mouseover */
/* Newsfeeds */
.newsfeedheading {} /* The newsfeed title. NOTE: This will not affect the newsfeed's
news title! */
.newsfeeddate {} /* yeah.. the date on the newsfeed */
.fase4rdf {} /* this is the body text of the newsfeed */
/* Search page */
table.searchintro {} /* This is for formatting the box with "Search Keyword: test
returned 4 matches" box that appears after you have entered a search value.
It appears on the mainbody with the search results */
.ontab {}/* For styling of the "Tab" buttons when editing contents through the
frontend as admin.
This .ontab is the styling for the tab when it is active or after its "clicked" */
.offtab {} /* Same as above, used for styling of the "Tab" buttons when editing
contents through the frontend.
This the styling for the tab when it is NOT active or when it is NOT "clicked" */
.tabpadding {} /* this style is used set the size of the tab in the above */
.tabheading {} /* Not too sure what this is used for. Couldn't find anything
related to it yet at the moment */
.pagetext {} /* this style is used to style the content of the editing form
contents (where HTMLArea sits and all its forms + contents) in the frontend
Administration interface */
5. Is that all?
template_css.css is just a part of Joomla / Mambo templating job. CSS defines content elements your Joomla /
Mambo pages. Layout and modules navigation of your template are also important. Details of Joomla / Mambo
layout are also picturized and well explained in this tutorial: Joomla / Mambo layout and navigation guides.
Hope you enjoy reading.
Comments
Great tutorial
Written by Guest on 2005-06-17 15:28:25
The Mambo CSS Tutorial gives a quick and easy reference to the user that started to experience with Mambo.
Regards,
for now i have check other templates but this explanation is really good for i am new to mambo.
Kind regards,
Joomla -Mambo Professional Templates Club -JoomlArt.com -Jo... http://www.joomlart.com/index2.php?
option=com_content&task=v...
Jeroen
The Dism Crew
superbe!!!
Written by Guest on 2005-06-20 08:56:55
Thanks, Anna
Bravo,ci voleva!
Very usefull! I was looking just for this.
Grazie,
Giacco :grin
Great Shit!
Written by Guest on 2005-06-23 19:19:10
thanks
Hi all
Written by admin on 2005-06-24 09:01:48
Thank you for your nice comments. If you need help on a specific problem, please kindly send an email to
support[at]joomlart.com Though I receive a lot of emails everyday but I will try to answer as many as I can, if you
are our Club member, please leave your username or email to get my first attention.
Thanks for the wonderful job, you may be too busy while setting this up to benifit the public and everyone, but
obvioulsy email is not a good good channel if you get too busy.
Hope to get a reply althought i have sent a few emails few days ago. Perhaps open a forum for FAQ, discussions
etc, so that we can get some help form the public too.
I am waiting
Written by Guest on 2005-06-24 14:50:13
Thanks for the wonderful job, you may be too busy while setting this up to benifit the public and everyone, but
obvioulsy email is not a good good channel if you get too busy.
Hope to get a reply althought i have sent a few emails few days ago. Perhaps open a forum for FAQ, discussions
etc, so that we can get some help form the public too.
thanks a bunch.
Written by Guest on 2005-07-04 02:13:38
the tutorial is clear and precise and can be very interesting also for experts. thanks a lot
Excelleng work
thanks very much for posting this.
GSBE
Splendid
Written by Guest on 2005-08-01 21:02:15
this is good i will try to convert my current layout which is in html format to mambo template using this
guide
I've been trying to work out how the CSS worked for weeks
:grin
sooo impressed
Written by Guest on 2005-08-27 01:11:21
i ave been trying to create mambo templates but the css always gave me problems cos i couldnt understand it.
This is an astonishing work, how joomlart has taken time out to illustrate it. Well done guys...i can now take a start
on creating the perfect template. Thank you
GREAT JOB!
Written by Guest on 2005-09-02 22:34:03
Very informative
Written by Guest on 2005-09-18 00:23:27
Good job. The visual representation of the css elements were of great value to me.
I just customised the template for the Coimbatore City site and everything worked well. This tutorial gives more
insight into the site and I have to give the credit to the person. Keep up the good work.
-Mohan
CubicMac
Joomla -Mambo Professional Templates Club -JoomlArt.com -Jo... http://www.joomlart.com/index2.php?
option=com_content&task=v...
:) Thank you!!
Hi,
Superb piece of documentation!
Any chance you can take the lead in developing readable guides and documentation for the rest of the
design/develepment/mods/etc people :grin :grin
Great stuff
Written by Guest on 2005-09-26 14:44:35
Thank you! I wish there was more help/resources like this for Mambo related issues. More, more...
THANKS HEAPS!! this is really wat i needed!! thanks heaps, and really good work! keep it up, and nice site!
thank you!
Written by Guest on 2005-10-28 07:03:59
Many thanks
Written by Guest on 2005-11-16 05:27:42
many thanks
Written by jani on 2005-11-30 03:50:28
super thank's
hello
Written by Guest on 2006-01-06 20:57:03
Wow,
perfect!
Written by Haluk BİLGE on 2006-01-20 18:20:54
But not a site, thats just what I need all the times, Thanks a Lot and Regards.
I'm so happy Fer
Write Comment
Please keep the topic of messages relevant to the subject of the article.
Personal verbal attacks will be deleted.
Please don't use comments to plug your web site.. Such material will be removed
Comment:
Image Verification:
Close Window