html tag's font-size #1720
-
Hi, how are you? Thank you guys for making & developing such a great project. RWD: Responsive Web Design Usually when creating a web-app by using Fomantic-UI, not all parts of the web-app can be coded with Fomantic-UI, some parts will be written with our own web-app's custom CSS. My GOAL (when using Fomantic-UI): To use as much of the framwork's CSS as I can, but in some sections it is not possible (ex. The grid is not efficient to be used in very small grid's because of the paddings). My BELIEF: That we programmers should not use inline CSS code to change the Fomantic-UI's CSS, to make it custom (wrong approach in my opinion), instead in such sections if we write our own custom CSS code, it will be more efficient (because even the best libraries like Fomantic-UI has it's own limits). In changing the website elements' CSS properties in smaller screen I know 3 ways:
Note: There are definitely more approaches that I do not know. I like using the 3rd approach, the web-app that i am working has many sections that doesnt use Fomantic-UI, and in the media queries these sections are made responsive by using rem according to the "html" tag's font-size. As you know, many programmers change the"html" tag's default font-size (16px) to 10px, so that they can easily calculate the rem of each element's CSS property. My PROBLEMS (ISSUES): I have changed the "html" tag's font-size to smaller values (smaller than 14px) in the media queries, so that all the elements in the webpage changes to smaller sizes, so that i wont write much media-query code. but the problem that i have with Fomantic-UI is it's "html" tag's default 14px value, which makes rem calculation hard for me. My QUESTIONS:
THANK YOU SINCERELY. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I think most of your questions can be answered the same: You can change the value for For a general responsive website you should check to use the following meta tag in your html
This almost always reduces the need of manual change of font fizes
That was a decision of the original author of SUI. When compiling Fomantic-UI on your own you don't need manual calculations.
No, if you don't need/want to
Did you know you can remove/reduce the paddings by |
Beta Was this translation helpful? Give feedback.
I think most of your questions can be answered the same:
You can change the value for
@fontSize
insite.variables
and recompile FUI. All calculations for all components will be done automatically, you dont need to do that on your own 🙂For a general responsive website you should check to use the following meta tag in your html
<head>
sectionThis almost always reduces the need of manual change of font fizes