End of Support for Joomla 3 - Forum closed
Center or justify the voices of the menu?
- puntoeditoriale
- Offline Topic Author
- Fresh Boarder
- Posts: 10
- Thank you received: 1
Center or justify the voices of the menu? was created by puntoeditoriale
Posted 8 years 3 months ago #14804
Hi, I'd need to center of justify the voices of the main menu in this site:
www.giemme-staff.it/
(now they are aligned on the left)
I tried in custom.css two solutions that did not work:
1)
.menu-inner {
float:center;
text-align:left;
}
2)
.uk-navbar-nav {
margin: 0;
padding: 0;
list-style: none;
float: center;
}
Ciao
Luca
I tried in custom.css two solutions that did not work:
1)
.menu-inner {
float:center;
text-align:left;
}
2)
.uk-navbar-nav {
margin: 0;
padding: 0;
list-style: none;
float: center;
}
Ciao
Luca
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Replied by joomlaplates on topic Center or justify the voices of the menu?
Posted 8 years 3 months ago #14808
Hi there,
float:center is a wrong css syntax.
Please use: float:none and then text-align:center and display:inline-block
TIPP:
css-tricks.com/centering-list-items-hori...han-you-might-think/
float:center is a wrong css syntax.
Please use: float:none and then text-align:center and display:inline-block
TIPP:
css-tricks.com/centering-list-items-hori...han-you-might-think/
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
Last Edit:8 years 3 months ago
by joomlaplates
Last edit: 8 years 3 months ago by joomlaplates.
The following user(s) said Thank You: puntoeditoriale
Please Log in or Create an account to join the conversation.
- puntoeditoriale
- Offline Topic Author
- Fresh Boarder
- Posts: 10
- Thank you received: 1
Replied by puntoeditoriale on topic Center or justify the voices of the menu?
Posted 8 years 3 months ago #14812
Sorry, I'm not so good with syntax
Now I tried:
.uk-navbar-nav {
float: none;
text-align: center;
display: inline-block;
}
Be patient, please...
Luca
Now I tried:
.uk-navbar-nav {
float: none;
text-align: center;
display: inline-block;
}
Be patient, please...
Luca
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates