Style sheets, Please Help..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Irfan Akram

    Style sheets, Please Help..

    Hi Guys,

    Where do we specify style sheets link, so that it is used through the
    asp.net web-application?

    Will wait for a useful response,

    Thanks,

    I.A..
  • Tampa.NET Koder

    #2
    Re: Style sheets, Please Help..

    Well,

    You have to include it in the head section of you page like this:
    <link rel="stylesheet " type="text/css" href="style.css " />

    However, if you want to do this once. You could create a common base class
    that all of your pages inherit from. Then, in your base class write out all
    of the common html, ie. external style sheet declaration. It takes a little
    extra work up front, which I feel is un-necessary. So, what I do, I just
    include my stylesheet link reference on every page.



    "Irfan Akram" <IrfanAkram@dis cussions.micros oft.com> wrote in message
    news:8CB8F64B-DB75-4E10-AC30-4A25BD54B56B@mi crosoft.com...[color=blue]
    > Hi Guys,
    >
    > Where do we specify style sheets link, so that it is used through the
    > asp.net web-application?
    >
    > Will wait for a useful response,
    >
    > Thanks,
    >
    > I.A..[/color]


    Comment

    • vMike

      #3
      Re: Style sheets, Please Help..


      "Tampa.NET Koder" <anonymous@micr osoft.com> wrote in message
      news:%231rrlc0J FHA.1280@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > Well,
      >
      > You have to include it in the head section of you page like this:
      > <link rel="stylesheet " type="text/css" href="style.css " />
      >
      > However, if you want to do this once. You could create a common base[/color]
      class[color=blue]
      > that all of your pages inherit from. Then, in your base class write out[/color]
      all[color=blue]
      > of the common html, ie. external style sheet declaration. It takes a[/color]
      little[color=blue]
      > extra work up front, which I feel is un-necessary. So, what I do, I just
      > include my stylesheet link reference on every page.
      >
      >
      >
      > "Irfan Akram" <IrfanAkram@dis cussions.micros oft.com> wrote in message
      > news:8CB8F64B-DB75-4E10-AC30-4A25BD54B56B@mi crosoft.com...[color=green]
      > > Hi Guys,
      > >
      > > Where do we specify style sheets link, so that it is used through the
      > > asp.net web-application?
      > >
      > > Will wait for a useful response,
      > >
      > > Thanks,
      > >
      > > I.A..[/color]
      >
      >[/color]
      Another way is to create a control with the style sheet link in it and add
      the control to every page. That way if you need to change the style sheet
      name you can change it in one place. This is handy if you want to force a
      new style sheet without having to go through every page.

      Mike


      Comment

      • syedemad

        #4
        CSS link

        slamz
        just place eg

        <LINK href="CSS_NAME. css" type="text/css" rel="stylesheet ">

        in the <HEAD></HEAD> tags of ur page
        i hope that wld do the job


        Posted Via Usenet.com Premium Usenet Newsgroup Services
        ----------------------------------------------------------
        ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
        ----------------------------------------------------------
        Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

        Comment

        Working...