Adding Style to Content in ContentPlaceHolder

Discussion in 'C#' started by electron, Oct 26, 2007.

  1. #1
    hi, i am new to asp.net & i am designing a website for the first time using it.

    Mine is a 3 col. layout.
    I have a site.master that contains the fixed layout with 1 ContentPlaceHolder for the middle Col., where i wish to put my content.

    Problem : is that i am not finding a way to put an external CSS for this ContentHolder.

    Help me out with this.

    Thanks in advance :)
     
    electron, Oct 26, 2007 IP
  2. electron

    electron Well-Known Member

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    Yep, got it. The CSS that i assigned to the site.master also works for the ContentHolder.
    :d
     
    electron, Oct 26, 2007 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Connect it by connect it to the master.

    Alternatively you can programmatically add elements to the header from within the content if you want a special CSS file for just a single content page

    Or finally use Themes to add the CSS which again can be set either in the master or the content file
     
    AstarothSolutions, Oct 26, 2007 IP