Solved

Basic Attribute Selector

Posted on 2014-02-18
1
168 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 500 total points
ID: 39867659
Type is email so you need to use email

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now