Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: Top Menu Icon Alignment  (Read 2266 times)
grayarti
Newbie
*
Offline Offline

Posts: 26


Elxis CMS is the best!


« on: August 21, 2009, 16:02:04 »

Hello to everyone,
I would like to use images larger than icons in the top menu, (say 100px x 60px), and have the menu item name under each image, but in the Top Menu Module I see that the Menu Icon Alignments are either left or right.  Is there any way of overriding this setting in the template .css to have the item name beneath each image?
I'm hoping some clever person has already solved this problem?
Thanks, Gray
Logged
ks-net
Elxis Community
Hero Member
*****
Offline Offline

Posts: 2075

Kostas Stathopoulos


WWW
« Reply #1 on: August 21, 2009, 16:22:53 »

Quote
I'm hoping some clever person has already solved this problem?
this is not a problem... it is a matter of design! you know you do!

yes it can be done.. trhough css ...

There are unlimited options to use, depending on your tpl ! and not elxis!

in general i can say:

use css properties  like , margin, display,float,img,a...  and if necessary override any inline styles with !important property.


let me see your tpl... if not match to do(my time is extremely limited) perhaps i can suggest more detailed tips.   
otherwise maybe you have to post an add to job-offering-adds
Logged

grayarti
Newbie
*
Offline Offline

Posts: 26


Elxis CMS is the best!


« Reply #2 on: August 21, 2009, 17:10:12 »

Hi Kostas, no, I wasn't saying that Elxis has a problem... I can understand the point of small menu icons, and the reason for the left/right positioning of them.  This idea of using large images in the menu, and not small icons, is just a design idea that I have, and would like to do, and so far I'm just showing the images, including the text title in the image itself, which is fine, BUT, because I have several languages, it means making many versions of each image, whereas if it were possible to have the item text underneath it would be great. 
I just thought that someone may have already done this, and already has the solution on what needs to be modified to override the left/right setting. So, no complaint or criticism, just a request for help on an idea.
I'm using the Okto template, and have tried to figure out how to do this in the custom.css, but I'm not good enough with css yet!  Undecided
Logged
ks-net
Elxis Community
Hero Member
*****
Offline Offline

Posts: 2075

Kostas Stathopoulos


WWW
« Reply #3 on: August 21, 2009, 21:20:26 »

ok ... but still i have to notice that is more  depending to  tpl rather than elxis...

a quick approach to what you are asking for...
www[.]ks-net[.]gr/elxisdemo/

Quote
/* top menu - Flat */
.navigation ul {
   overflow: hidden;
   margin: 0px;
   padding: 0px;
}
.navigation li {
   border-right: 1px solid #133F56;
   float:left;
   margin: 0px;
   padding: 0px;

}
.navigation li a, .navigation li a:visited {
   background: #3C6F89 /*url(../images/topmenu.png) top left repeat-x*/;
   color: #ffffff;
   display: block;
   font: bold 1.1em sans-serif;
   line-height: 30px;
   padding: 0 20px;
   text-decoration: none;
        text-align:center;   
}
.navigation li a:hover {
   background: #fff /*url(../images/topmenu_over.png) top left repeat-x*/;
   color: #333;
}
.navigation li #active_menu-nav {
   background: /*#3C6F89 url(../images/topmenu_over.png) top left repeat-x*/;
}




.mainlevel-nav img {display:block;margin-right:auto;margin-left:auto;}

red or bold text is  what needed for okto tpl to display img above text and text align at center

the most important for you is the last line

Ps.. elxis has no limit
« Last Edit: August 22, 2009, 02:13:20 by ks-net » Logged

grayarti
Newbie
*
Offline Offline

Posts: 26


Elxis CMS is the best!


« Reply #4 on: August 21, 2009, 21:57:07 »

Bravo Kostas! ... That is exactly what I was trying to do, it's always SO easy when you know how, huh?  Cool Thank you very much for your help, Elxis is a great CMS!!
Logged
Pages: [1]
  Print  
 
Jump to: