can i change this text size?

Associate
Joined
20 Oct 2012
Posts
457
Location
west sussex
Hi im sure this is basic coding and was wondering if someone could help me?

i have a button on my size that i added and was wondering if i can make the text inside it bold or slightly bigger?
here is the code for that button.

<form><input onclick="self.location='http://www.lampspares.co.uk/examples/glass-lamp-base/'" type="button" value="I am making a bottle into a lamp" /></form>

hope someone can help me.
 
Soldato
Joined
7 Mar 2007
Posts
9,917
Location
Belfast
give the input an ID="" or class="" property and then reference it in the CSS file using #yourname or .yourname respectively.

You can then use font-size: and/or font-weight:
 
Associate
OP
Joined
20 Oct 2012
Posts
457
Location
west sussex
is there a way of adding something inline? as im just putting it into a basic website testbox when creating a webpage if that makes sense? and im not sure how i would put a css file in there? i know how to make css files and link them to html file etc.
Maybe get the pros in lol
 
Soldato
Joined
7 Mar 2007
Posts
9,917
Location
Belfast
If you want to use inline, you can use:

style="font-size:15px; font-weight:bold;" - You can use whatever font size value you want, like px, em etc. This would give the same effect as using an ID/Class and a CSS file. Not the best practice really, but it will work.
 
Back
Top Bottom