-
AuthorPosts
-
July 14, 2011 at 10:37 am #166286
In joomla 1.6 , I am working to put more icons like home in main menu.
I have created a new class in template.css “twitter”, but I have a row more width than the others
The code is this
[PHP]/* NAVIGATION
——————————————————— */
/* Main Nav —*/
#ja-mainnav { }#ja-mainnav .main { border-top: 1px solid #ccc; margin-bottom: 12px; }
/* Special Buttons */
#ja-mainnav li.home { }#ja-mainnav li.home a.home {
padding: 4px 0 3px;
margin: 3px 5px;
text-indent: -1000em;
width: 28px;
}#ja-mainnav li.home .childcontent-inner { background-position: 14px top; /* Realign The Arrow */ }
span.has-image {
min-height: 18px;
}/* Special Buttons */
#ja-mainnav li.twitter { }#ja-mainnav li.twitter a.twitter {
padding: 4px 0 3px;
margin: 3px 5px;
text-indent: -1000em;
width: 28px;
}#ja-mainnav li.twitter .childcontent-inner { background-position: 14px top; /* Realign The Arrow */ }
span.has-image {
min-height: 18px;
}/* Home Button */
#ja-mainnav li.home a.home { background: url(../images/icons/home.png) no-repeat center !important; }#ja-mainnav li:hover a.home,
#ja-mainnav li.over a.home,
#ja-mainnav li.active a.home {
background: url(../images/icons/home-l.png) no-repeat center #000 !important;
}/* Twitter Button */
#ja-mainnav li.twitter a.twitter { background: url(../images/icons/twitter.png) no-repeat center !important; }#ja-mainnav li:hover a.twitter,
#ja-mainnav li.over a.twitter,
#ja-mainnav li.active a.twitter {
background: url(../images/icons/twitter2.png) no-repeat center #000 !important;
}[/PHP]
What’s wrong???
My web is http://www.anosagalicia.es/index.php
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
July 14, 2011 at 11:00 am #401132Hi,
You remove this code from /templates/ja_teline_iv/css/menu/mega.css
.twitter {
padding: 15px 0 !important;
}pritam Friendpritam
- Join date:
- April 2011
- Posts:
- 609
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 11
- Thanked:
- 125 times in 113 posts
July 14, 2011 at 11:05 am #401133Hello molk ,
solution for Your issue :-
Find this code :-
.twitter {
padding: 15px 0 !important;
}Change this code to :-
.twitter {
padding: 4px 0 !important; /* pixel as per requirement*/
}Can you please provide your correct admin details .But first go into the template manager and set css optimiation to “No” so we can see the correct files to modify not the compressed version and we can help you better.
July 14, 2011 at 11:24 am #401137In the template for joomla 1.6 , I have created this line
.twitter {
padding: 4px 0 !important; /* pixel as per requirement*/
}and now is much better in http://www.anosagalicia.es/index.php
but not perfect like the home icon
pritam Friendpritam
- Join date:
- April 2011
- Posts:
- 609
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 11
- Thanked:
- 125 times in 113 posts
July 14, 2011 at 11:31 am #401138Hello molk ,
You can Find this code at /templates/ja_teline_iv/css/menu/mega.css line no.223
Find this code :-.twitter {
padding: 15px 0 !important;
}Change this code to :-
.twitter {
padding: 4px 0 !important; /* pixel as per requirement*/
}khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
July 14, 2011 at 11:44 am #401142<em>@molk 253126 wrote:</em><blockquote>In the template for joomla 1.6 , I have created this line
.twitter {
padding: 4px 0 !important; /* pixel as per requirement*/
}You replace this code from
and now is much better in www.anosagalicia.es/index.phpbut not perfect like the home icon</blockquote>
You replace this code from http://www.anosagalicia.es/templates/ja_teline_iv/css/menu/mega.css
.twitter {
padding: 4px 0 !important;
}
with
.twitter {
padding: 2px 0 !important;
}1 user says Thank You to khoand for this useful post
July 14, 2011 at 2:11 pm #401169Great!!!!
Now looks fine!!!<em>@khoand 253131 wrote:</em><blockquote>You replace this code from http://www.anosagalicia.es/templates/ja_teline_iv/css/menu/mega.css
.twitter {
padding: 4px 0 !important;
}with
.twitter {
padding: 2px 0 !important;
}
</blockquote>AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 3 voices, and was last updated by molk 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Icons like home in Joomla 1.6
Viewing 7 posts - 1 through 7 (of 7 total)