Jump to content

help with html role button?

Go to solution Solved by CalumT,

i got it lol was trying everything else apart from just .btn      lol ffs

must of sat for near half an hour thinking about it haha

Glad you got it sorted mate :)

Hi 

 

im making a website for a friend and i'm using bootstrap but i've came along this line of code

 

<p><a class="btn btn-default" href="#" role="button"> Price List</a></p>

 

could someone help me with how i could change the font size and stuff using css? 

i have tried a few already but can't seem to get it to change 

Link to comment
https://linustechtips.com/topic/217010-help-with-html-role-button/
Share on other sites

Link to post
Share on other sites

Wherever btn btm-default is defined (in a .css file or in the header), define a font style within it with colour, size and other things. See how that works!

 

i got it lol was trying everything else apart from just .btn      lol ffs

must of sat for near half an hour thinking about it haha

Link to post
Share on other sites

Hi 

 

im making a website for a friend and i'm using bootstrap but i've came along this line of code

 

<p><a class="btn btn-default" href="#" role="button"> Price List</a></p>

 

could someone help me with how i could change the font size and stuff using css? 

i have tried a few already but can't seem to get it to change 

Hello KraZz3D,

 

If you want to set the color, font and font size through CSS try following my intructions bellow.

 

  1. Make a CSS file for your website in your folder where you store your website.
  2. Type the following code,

text-size-adjust: none 

text-size-adjust: auto 

text-size-adjust: <percentage> 

text-size-adjust: inherit

 

  1. To set the the text color, go into the CSS file you just created and enter the following code.

body {

    color: blue;

}

h1 {

    color: #00ff00;

}

h2 {

    color: rgb(255,0,0);

}

 

 

- Disclaimer - 

 

You only need to type the h1 and h2 code if you have a heading 1 and a heading 2 in your page, if you don't then you don't need them.

 

 

  1. To change the font style, go into your CSS file once again and follow the following code.

{

    font-family: "Times New Roman", Times, serif;

}

 

 

 

You can find a full list of fotnt families here, at this link. http://www.w3schools...ss/css_font.asp

 

I would highly recomend that website if you need some information quickly, but if you need more help then feel free to come back to this thread or forum  :)

 

 

I hope this helped and best of luck with your website, I hope your friend enjoys it.

 

~ Harry

It seems impossible until it's done.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×