CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Replied by sylvain1973 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58621
C'est bien au niveau du CSS de mon thème perso que je dois mettre ce code ?
Si c'est bien ça, pas de changement ! :(

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58622
ok, remplace le code par celui-ci
Code:
#maximenuck439 ul.maximenuck li.maximenuck.level2 a span.titreck { display: block; text-align: center; }

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by sylvain1973 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58623
Oui ça fonctionne, mais visuellement j'ai des doutes !
Merci pour tout !

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58624
après faut faire des choix.
Le truc c'est que tu ne peux pas "centrer" comme tu le penses :
- le texte fait une largeur bien moindre que la colonne sur grand écran
- si le texte est aligné à gauche, il reste un espace vide dans la colonne

tu voudrais aligner le texte à gauche et en même temps le centrer. Cela pourrait se faire, mais avec des techniques CSS et en passant du temps à bien concevoir le truc

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by sylvain1973 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58626
Oui tu as raison.
Il me vient une idée, est-ce que je peux contourner le problème en créant une colonne avant le premier lien et une après le dernier, avec un fond identique (et éventuellement en mettant un fond blanc en image) pour pouvoir recentrer mon menu ?

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic CENTRER LES LIENS DANS UN SOUS MENU EN PLAINE LARGEUR

Posted 3 years 5 months ago #58627
tu peux essayer mais c'est de la mamaille
tu peux aussi jouer du css avec :first-child et :last-child
bon courage ;)

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.747 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1468 guests and 2 members online