I try to use css to modify sub object of a div,the html source code is below:
<div id="Last_Name_div" class="inputContainer textContainer">
<div class="label">
Last Name: *</div>
<p>
<input class="shorttext" name="Last_Name" id="Add_Link_Form_Last_Name" value="zzz20080905" size maxlength type="text">
</p>
<div class="errorMsg">
</div>
</div>
I use the css code is below:
#Last_Name_div .errorMsg{
color: #f00;
font-size: 10px;
padding-left: 640px;
}
It is working well.
<div id="Last_Name_div" class="inputContainer textContainer">
<div class="label">
Last Name: *</div>
<p>
<input class="shorttext" name="Last_Name" id="Add_Link_Form_Last_Name" value="zzz20080905" size maxlength type="text">
</p>
<div class="errorMsg">
</div>
</div>
I use the css code is below:
#Last_Name_div .errorMsg{
color: #f00;
font-size: 10px;
padding-left: 640px;
}
It is working well.