inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 16, 2020 12:49:46 GMT -8
I am requesting a code that will make the buttons on the navigation menu display round.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Mar 16, 2020 13:06:09 GMT -8
Can you clarify what you mean by "round"? Are you looking for completely circular, elliptical, or just rounded edges?
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 16, 2020 17:10:15 GMT -8
Can you clarify what you mean by "round"? Are you looking for completely circular, elliptical, or just rounded edges? Either round/circular, elliptical, or just rounded edges.
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Mar 16, 2020 20:39:17 GMT -8
You will need to choose one so that the code can be provided. You were asked a question with three choices and effectively just answered "yes". :P
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 16, 2020 21:33:56 GMT -8
You will need to choose one so that the code can be provided. You were asked a question with three choices and effectively just answered "yes". I took that to mean "any of the above will be just fine." With that in mind, private , you can add this to the bottom of the Style Sheet of the desired theme: /* Elliptical Navigation Bar Buttons Note: Button background color MUST be different than the Navigation Bar background-color, else you won't see the effect! */
#navigation-menu ul li a { border-radius:50%; margin-right:5px; } /* end of section */ Remember to click the Save Changes button at the bottom left of the page, or the Save Theme button near the top.
If you need to change the background-color of the button, switch to the Visual Editor tab, then ... Click on Header (Top) ... that section will expand. Click on Forum Banner ... that section will expand. Click on Navigation Bar ... that section will expand. Click on Button ... that section will expand. Use the Color Picker to the right of Background Color to select a different color than what's being used for the Navigation Bar. If desired, Click on Hover ... that section will expand. Use the Color Picker to the right of Background Color to select a different color than you used for Button. This will make it abundantly clear which button one is about to click. Remember to click the Save Changes button at the bottom left of the page, or the Save Theme button near the top.
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Mar 16, 2020 22:38:44 GMT -8
Retread you could also add a background to your bit of CSS using rgba to have it show up. See my change for an example. /* Elliptical Navigation Bar Buttons. */ #navigation-menu ul li a { background: rgba(250, 250, 250, 0.5); border-radius: 50%; margin-right: 5px; } /* end of section */
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 17, 2020 6:56:31 GMT -8
Yes Nscalerr, that will definitely work. I'm a big fan of retaining the functionality of the Visual Editor so I try to avoid making additions at the bottom of the Style Sheet which will overwrite any of its functions. But defining the background-color of the button there will work.
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 17, 2020 23:40:51 GMT -8
Retread, thank you for explaining that. Any of the above will be fine. You will need to choose one so that the code can be provided. You were asked a question with three choices and effectively just answered "yes". I took that to mean "any of the above will be just fine."
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 17, 2020 23:43:26 GMT -8
Thank you to all that replied. I will begin using the code and the post updates.
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 17, 2020 23:45:17 GMT -8
Retread you could also add a background to your bit of CSS using rgba to have it show up. See my change for an example. /* Elliptical Navigation Bar Buttons. */ #navigation-menu ul li a { background: rgba(250, 250, 250, 0.5); border-radius: 50%; margin-right: 5px; } /* end of section */ Nsclaerr, I will post this in the bottom of my style sheet.
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 18, 2020 8:26:00 GMT -8
I thank everybody for their help. The elliptical code worked out.
I am now requesting a second, separate code for rounded corner buttons.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 18, 2020 9:34:56 GMT -8
Rounded corners and elliptical use almost the same process but rather than defining the border-radius as a percent, you can specify it in pixels.
A small value such as 3px, will ease the corners slightly so they're not sharp. A larger value such as 10px will have obviously rounded corners. Even if you specify something huge like 500px, it won't affect the flatness of the long direction. But the ends will be completely round.
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 18, 2020 11:33:16 GMT -8
Rounded corners and elliptical use almost the same process but rather than defining the border-radius as a percent, you can specify it in pixels. A small value such as 3px, will ease the corners slightly so they're not sharp. A larger value such as 10px will have obviously rounded corners. Even if you specify something huge like 500px, it won't affect the flatness of the long direction. But the ends will be completely round. Thank you for your reply. I am not sure that I understand. Does that mean that I should change the border-radius to 30% and the margins to 10px?
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 18, 2020 12:45:27 GMT -8
Hey private, The margin-right value can be changed if you want to adjust the spacing between the buttons. Just change the border-radius value to something like this: border-radius: 10px; You can adjust the 10px, larger or smaller to suit your personal taste.
|
|
inherit
250182
0
Dec 13, 2023 22:58:15 GMT -8
private
499
October 2017
private1
|
Post by private on Mar 19, 2020 4:00:44 GMT -8
Hey private , The margin-right value can be changed if you want to adjust the spacing between the buttons. Just change the border-radius value to something like this: border-radius: 10px; You can adjust the 10px, larger or smaller to suit your personal taste. Retread: Oh, its the margin and the border-radius that are adjusted to that preferred value. Thank you for clarifying.
|
|