How do I put a font colour on buttons when creating a website using html?

  • Thread starter Thread starter Jonathan B
  • Start date Start date
J

Jonathan B

Guest
Please help whoever knows about html? I have a website with buttons on them and they have links on them that lead to the rest of the site. What I need to know is how to add a font colour to those buttons.
 
You can either create an image and make that your button, it would look like this:
<a href="yourlink.com"><img src="yourimage.jpg" /></a>

Or you can create it combining CSS and HTML:
<a href="yourlink.com" class="button">Go Here</a>
And in the css:
a.button{color:#FFFFFF;width:300px;height:100px;background:blue}

So the css will create a button that is 300 pixels wide, 100 high, a background color of blue and the text color will be white.
 
Back
Top