Forums

ASP

This topic is locked

Asp WIth CSS question..

Posted 06 Dec 2002 04:15:36
1
has voted
06 Dec 2002 04:15:36 LiToZ LiToZ posted:
Hey, instead of adding the style format for every text area and text field and drop down menu, i want to do that in ASP so that the main .asp page which is included in all the site file hold that CSS and apply it on each page.. i have already done that sucsessfuly.. but it worked only for the Text Boxes and didnt work with the text fields or the drop down menus... for the text boxes i have redefined the <font color=red>Input</font id=red> tag... so which tag is supposed to be redefined for both the text fields and drop down menus and list boxes ?? please inform me!! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Replies

Replied 06 Dec 2002 12:25:45
06 Dec 2002 12:25:45 Vince Baker replied:
create a new tag (copy and paste that of input) and rename it to anything you like.

Then attach that to the object i.e.

&lt;input="menu" class="yourinputname"&gt;

Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 06 Dec 2002 17:31:49
06 Dec 2002 17:31:49 LiToZ LiToZ replied:
Thank you for your help, but actually.. that is not exactly what i wanted... becaue in this way i will have to attach my CSS to each object manually... THOUGH what i want is that when the CSS is in the included file all over the site it will change EVERY textbox and textfield and fropdownmenu..etc in the whole site..
and that already worked with only the text boxes, i done it by adding the following line in Header.asp :
&lt;link rel="stylesheet" href="/include/EgMobCss.css" type="text/css"&gt;

and header.asp is Included in ALL the files so it just work fine with ALL the text boxes.. any idea about how to do the same with all the other Text-Input fields ?

Reply to this topic