Forums »
  HTMLForums And Topics Discussions Help for Hyper Text MarkUp Language »
    How To Apply Style To A Specific Field Type Using Css

How To Apply Style To A Specific Field Type Using Css

Description: will show you a simple way to apply a style to a specific field. it doesnt have to be a form input it can also be a div tag
Tags: computer ,programming ,web ,css ,style
Posted On Sat Apr 14, 2012 By hosman In HTMLForums And Topics Discussions Help for Hyper Text MarkUp Language Forums
hello everyone, today i will show you a simple way to apply a style to a specific field. it doesnt have to be a form input it can also be a div tag. but for this example, i will be using an input field for this demo. lets say i have this:
<input type="button" name="MyButton" value="Submit">

and the OUTPUT looks like this:

as you can see, i dont have a class on this button, of course the easiest way to do that is to add a class, but thats not what this example is about, its about showing you how you can add style without using a class attribute

so lets say we want to make all of our input buttons color yellow, this is how we can use the style syntax:

<style type="text/css">
<!--
input[type="button"] {
background-color: #FC0;
}
-->
</style>


simple. hope that helps


Information
Title: How To Apply Style To A Specific Field Type Using Css
Info: This Post Has Been Viewed 0 Times Since
Date: Sat Apr 14, 2012
Author hosman Received 0 Replies #772
Related Content
Related Pages
Related Sites
Add Your Website
Share
wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Tue Jun 18, 2013 (-8 GMT)
Powered by: Webune Forums V5