Follow these steps for making the design of the controls in asp.net so attractive through the CSS.
1) Open a new Web Site, and select the Source
mode.
2) From the Standard Toolbox menu,
add a Textbox web control to the editor between the <div></div>
tags, and put a <p/> tag after it
3) From the HTML Toolbox menu, add an Input
(Text) Web form beneath the <p/> tag.
4) Switch to Design
mode
5) Select View àManage Styles
to open the CSS Manage Styles tool.
6) Once the CSS style tool is open,
click on New Style at the top of the window. The New Style window
opens.
7) In the Selector box, type .input. This is the class name.
8) In the Define In box, choose Current Page from the drop-down
list
9) Select Font from the Category menu. Make the settings: -
10) Select Border
in the Category menu
11) Select Position àcategory menu (according to the condition)
12 Click OK
and if you want to see the information which you stored in CSS just move the
mouse over the CSS file (such as .input class).
13) Now go to the design mode (.aspx page) àdrop web controls as you want à Go to property window à CSS
Class à choose Name of CSS
class such as (.input )
No comments:
Post a Comment