click below
click below
Normal Size Small Size show me how
css week 5
Question | Answer |
---|---|
How many types of attributes value are there ? | Seven(7) |
data-value*="abc" | Attribute value contains "abc" somewhere in it |
data-value^=”abc” | Attribute value starts with "abc" |
data-value$="abc" | Attribute value ends with "abc" |
input[type=submit] {} | This code specifies the style for the submit button |
input[type=text]{} | This code specifies the style for the input type textbox |
input[type=submit]:hover {} | This code specifies the style for the submit button, when the mouse hovers over it. |
input[type=text]:focus{ background-color:pink;} | Change the style of a focused input box |
textarea {font-size: 20px;} | This code specifies the style of the text area. |
input[name="email"] {background-image: url('email.png');} | Add a background image for a text box. |
input[type=text]:focus {width: 200px;} | Change the width of a focused input box |
.header {background-color: green; padding: 20px; text-align: center;} | Insert a header with this specific style |
.footer{background-color:black; padding:5px ; text-align:center;} | Insert a footer with this specific style |