Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1433

Templates for Joomla! 5.x • Re: How to centre and change the font size of the menu

$
0
0
To center and change the font size of a menu, follow these steps:

Center the Menu:

CSS: Add text-align: center; to the CSS style for the menu container.
Change Font Size:

CSS: Use the font-size property. For example, font-size: 16px; or font-size: 1.2em; in the CSS style for the menu items.
Here’s a sample CSS code snippet:

css
Copy code
.menu-container {
text-align: center;
}

.menu-item {
font-size: 16px; /* Adjust as needed */
}
Adjust the font-size value to fit your design needs. This will center the menu and set the desired font size.

Statistics: Posted by handythomas — Mon Jul 29, 2024 10:05 am



Viewing all articles
Browse latest Browse all 1433

Trending Articles