Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use a CSS to Standardize this? 1

Status
Not open for further replies.

Mike555

Technical User
Feb 21, 2003
1,200
US
If this is the wrong forum for this question please advise. I'm a programmer who's slowly learning the art of web design. As such I have a question which probably has a relatively simple solution. On each webform in my asp.net project I have the following HTML...
Code:
<a href="default.aspx" style="FONT-WEIGHT: bold; FONT-SIZE: xx-small; Z-INDEX: 104; LEFT: 536px; WIDTH: 187px; COLOR: white; FONT-FAMILY: verdana; POSITION: absolute; TOP: 40px; HEIGHT: 32px"
				title="Main Menu">Home</a>
I copy/paste this code into each new webform I create. Is there a way that I can add this code to my CSS so that each new webform that uses the CSS can have this code automatically? Thanks.
 
in ur css:
.myCss{
FONT-WEIGHT: bold; FONT-SIZE: xx-small; Z-INDEX: 104; LEFT: 536px; WIDTH: 187px; COLOR: white; FONT-FAMILY: verdana; POSITION: absolute; TOP: 40px; HEIGHT: 32px}

in ur link:
<a href="default.aspx" class="myCss"

Known is handfull, Unknown is worldfull
 
vbkris, Is .myCss a new class that should be added to the CSS?

Thanks for your help.
 
Yes, just add it to your css file.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top