[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Basic Attribute Selector

Posted on 2014-02-18
1
Medium Priority
?
180 Views
Last Modified: 2014-02-18
Trying make some changes to a type element attribute but for some reason it is not taking effect.

The part of the html I want to change is
<input type="email" name="email">

The selector I'm using in CSS is
input[type="text"]{
      width: 200px;
      height: 25px;
      border: 2px solid grey;
      background: lightyellow;
}
0
Comment
Question by:centem
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39867659
Type is email so you need to use email

input[type="email"]{...}
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month18 days, 4 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question