-
Hi, I've followed the customize font example and I'm able to modify the font for elements like h1. I was wondering if it was possible to do the same for just the text in the md-tabs or md-header section of the generated site. For example this works in an extra.css:
But this does not:
Really appreciate any help. Trying to use this to make a personal website, not documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You're missing a .md-tabs {
font-family: "PlayFair";
}
.md-header {
font-family: "PlayFair";
} We recommend to use the web inspector of your browser to find out which rules need to be changed with CSS. The above rule should at least change the font family. To change font size and colors you might need to use more specific rules. Maybe somebody from the community can share some customizations how to do that |
Beta Was this translation helpful? Give feedback.
Thanks much for the tips @alexvoss and @squidfunk
With your advice I went through the process of inspecting every element and with the assistance of
#2933 (comment)
I came up with the following adjustments in extra.css to achieve the effect I was looking for of a large title and logo and a somewhat large and centered navigation tab. Makes it feel a little less techy I think.
The only thing I'm not sure of is if I was able to change the font-family of the title, but it's close enough to what I want to not spend more time on it. I'm not fond of css so I'm hoping that I'm close to down with the basic design and I hope it looks good in different size screens!