[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

ASP.net Create Styles

The following link shows adding the style below. Where exactly does the style code
below go. I tried just pasting it at the bottom of Site.css and it didn't work

http://www.codeproject.com/Articles/313197/Simple-way-to-Design-Tabs-in-ASP-NET

 <style type="text/css">
  .Initial
  {
    display: block;
    padding: 4px 18px 4px 18px;
    float: left;
    background: url("../Images/InitialImage.png") no-repeat right top;
    color: Black;
    font-weight: bold;
  }
  .Initial:hover
  {
    color: White;
    background: url("../Images/SelectedButton.png") no-repeat right top;
  }
  .Clicked
  {
    float: left;
    display: block;
    background: url("../Images/SelectedButton.png") no-repeat right top;
    padding: 4px 18px 4px 18px;
    color: Black;
    font-weight: bold;
    color: White;
  }
  </style>
0
Murray Brown
Asked:
Murray Brown
2 Solutions
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
You can put this style code inside <Head></Head> section of your aspx page.
0
 
Carl TawnSystems and Integration DeveloperCommented:
In that example they are intending for it to go in the HEAD section of the page. Where you would put it in reality will depend on your particular requirements. An external stylesheet makes maintenance simpler, and allows you to use the styles site-wide without having to copy and paste them between pages.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now