Solved

Basic Attribute Selector

Posted on 2014-02-18
1
174 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

809 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