3
   

How can I apply CSS style using ID value?

 
 
rogers
 
Reply Fri 29 Jan, 2016 12:01 am
How can I apply CSS style using ID value?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 3 • Views: 6,552 • Replies: 2
No top replies

 
mrrobin
 
  1  
Reply Thu 16 Nov, 2017 05:59 am
@rogers,
you can use id in your html element in which you want to give style:
<input id="button" type="submit" value="Go" name="goButton">
then in your style sheet, you should use:
#button {
Color: white;
background: red;
font-size: 15px;
border-radius: 4px;
padding: 5px 10px;}
0 Replies
 
kazi aminul islam
 
  1  
Reply Thu 21 Dec, 2017 11:35 pm
@rogers,
CSS
#identified {
background-color: skyblue;
}

HTML
<div id="identified">This div has a special ID on it!</div>
<div>This is just a regular div.</div>
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » How can I apply CSS style using ID value?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 01:37:08