Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change paragraph font size in bootstrap.css

we are using bootstrap v2 CSS and we want to increase the font size by a point or two globally. i wanted to know if this was a simple change in the CSS file or more complicated than that.

i tried and looked into the CSS but it's complicated to me and i am afraid of breaking something else. Can someone possibly help with this.

like image 871
user1144596 Avatar asked Nov 05 '13 19:11

user1144596


People also ask

How do I change the default font size in Bootstrap?

To change the default font size, add this CSS rule to your theme stylesheet after the Bootstrap stylesheet. Add a google font stylesheet below the Bootstrap CSS stylesheet.

How do I make the Bootstrap 4 text sizes responsive?

How do you make the Bootstrap 4 text sizes responsive? Since Bootstrap is a “Mobile First” CSS framework you need to write your styles mobile up. So, your smallest bold font size will be written outside of a media query and then you will make adjustments as the viewport gets larger.

What is the default font size for a paragraph in word?

Note: If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em). Set Font Size With Pixels Setting the text size with pixels gives you full control over the text size:

How do I set the font-size for my HTML content?

Always use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs. The font-size value can be an absolute, or relative size. Note: If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em). Tip: If you use pixels, you can still use the zoom tool to resize the entire page.


1 Answers

If you add:

<style type="text/css">
p {
   font-size: 16px;
}
</style>

to your HTML file (in the header) you're all set.

If that doesn't provide the desired results, add font-size: 16px !important; instead.

Important will tell the browser your CSS file is more important than Bootstrap's and it should use yours instead.

Just make sure your CSS file or section (like above) is added after the Bootstrap CSS reference.

like image 118
Jeffrey Kevin Pry Avatar answered Oct 25 '22 01:10

Jeffrey Kevin Pry