02-262000
101
7109
1966
36
880
11.03
1954
03
6.08
241
309
7.08
1935
12.20
53
1961
2.16
102
8102
1987
044
0051
1968
704
10.31
1984
1954
764
1940
9.9
1972
815
4.12
2023
103
714
1993
0222
4.4
1969
2450
91
56
21
716
801
417
602
5618
238
1443
104
6104
1995
3.22
1931
0.0
0000
1701
1984
218
908
10
85
1888
27
2879
213
105
08
2001
713
079
1977
LV
426
105
10
1642
1979
402
795
361
0852
984
106
31
2017
429
65
871
24
541
656
M
113
12.6
27
05
85
12.25
7884
107
5
2022
784
3304
42
733
1224
5801
23
1015
84
36
029
24
318
12.24
108
23
174
91
947
28
527
04
0469
2200
88
1985
540
3121
308
9571
404
03-111968
04-041969
05-1701D
06-071984
07-081940
08-47148
09-081966
10-31

LCARS Buttons

This page is about adding LCARS style buttons to your pages, like the ones you see right above. If you are looking for how to add buttons to the sidebar, please see this page.

HTML for Adding Buttons

You may want to add some LCARS style buttons to your web pages and it's really easy to do.

HTML
<div class="buttons">
  <a href="url">button 01</a>
</div>

Output

Every <a> tag (hyperlink) inside the "buttons" div becomes a button.

<div class="buttons">
  <a href="url">button 01</a>
  <a href="url">button 02</a>
  <a href="url">button 03</a>
</div>

Button with 2 rows of text

You may run into the situation where you have too much text for the size of your button. Add the class "two-rows" to the *a* tag and the resulting font will be smaller and the padding inside the button will allow for 2 rows of text. Just remember to include the <br> tag to separate the two rows of text.

<div class="buttons">
  <a href="url" class="two-rows">button top row<br>
  bottom row</a>
</div>

Change Button Color

The default button color for the Classic LCARS color theme is #CC88FF (class name "african-violet"). You can easily change the color of a button by simply adding a color class name to the <a> tag.

<div class="buttons">
  <a href="url">default color</a>
  <a href="url" class="sunflower">sunflower</a>
  <a href="url" class="bluey">bluey</a>
</div>

There are several color options which you will find in the Color Guide along with their class names.

NOTE
Any text you place in a button in HTML will automatically display in uppercase letters.

Button Layouts

Use the following class selectors (shown in orange) in the parent *buttons* DIV to position a button or group of buttons. Note that buttons will wrap at smaller viewport sizes. Positioning classes work in all themes.

center one or more buttons

jc-center
Note: *jc* stands for justify content.

Buttons that Align to the Right

jc-flex-end
Note: Buttons align to the left by default.

a group of buttons that are spaced evenly

jc-space-evenly
Buttons are distributed so that the spacing between any two adjacent alignment buttons, before the first alignment button, and after the last alignment button is the same.

a group of buttons that fill a line

jc-space-between
Buttons are evenly distributed in the line; first button is on the start of the line, last button on the end of the line.

a group of equally spaced buttons

jc-space-around
Buttons are evenly distributed in the line with equal space around them.

<div class="buttons">
  <a href="some-url" class="blink">enable</a>
</div>

NOTE: For usability, the blinking stops on mouseover.

page last updated september 10, 2023