ricepattyk / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

inheritance #3

Open rimmesbe opened 7 years ago

rimmesbe commented 7 years ago

An easier way to set the pages default font is to use inheritance. Set the font in the body and all the other tags will inherit from that. body { font-family: Helvetica; }

https://github.com/ricepattyk/prj-rev-bwfs-dasmoto/blob/master/Dasmoto/resources/css/style.css#L1-L3

ricepattyk commented 7 years ago

Would you say this is best practice only if 100% of the fonts used on a website is one font? What if there are different fonts for the headers and the body? Would it be better to do what I had done or would you still set the default font as the body, and then do more specific selectors for elements that have a different font?

rimmesbe commented 7 years ago

The most fonts you will ever want on a page is 3 (usually 2), otherwise it just starts to look like a mess. Usually you will set the main font with inheritance, and then do your method for the secondaries.

On Tue, Aug 8, 2017 at 9:15 PM, ricepattyk notifications@github.com wrote:

Would you say this is best practice only if 100% of the fonts used on a website is one font? What if there are different fonts for the headers and the body? Would it be better to do what I had done or would you still set the default font as the body, and then do more specific selectors for elements that have a different font?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ricepattyk/prj-rev-bwfs-dasmoto/issues/3#issuecomment-321124776, or mute the thread https://github.com/notifications/unsubscribe-auth/AJfw_H_vtZSKmJqkv2PTmm-V7XgLG9ZTks5sWQhHgaJpZM4OvoPw .