Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Apply css just in contentpage

Apply css just in contentpage

Scheduled Pinned Locked Moved Web Development
cssarchitecturequestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elham M
    wrote on last edited by
    #1

    Hi guys, I have table in master&contentpage and in my content page when I add style it apply to both master and contentpage But I want just content page give this style what can I do?below is my code

    td{height:30px; padding-right: 10px}
    tr{border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #C0C0C0; }
    

    Thanks.

    M A 2 Replies Last reply
    0
    • E Elham M

      Hi guys, I have table in master&contentpage and in my content page when I add style it apply to both master and contentpage But I want just content page give this style what can I do?below is my code

      td{height:30px; padding-right: 10px}
      tr{border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #C0C0C0; }
      

      Thanks.

      M Offline
      M Offline
      Morgs Morgan
      wrote on last edited by
      #2

      Hi by defining your style like that mean that all the td and tr will have that styling you have specified. You can narrow that down to something like:

      .contentTable td
      {
      height:30px;
      padding-right: 10px;
      }
      .contentTable tr
      {
      border-bottom: 1px solid #C0C0C0;
      }

      The .contentTable defines a css class which you can now apply to a table in your content place holder like so:

      The data

      Hope that helps

      E 1 Reply Last reply
      0
      • M Morgs Morgan

        Hi by defining your style like that mean that all the td and tr will have that styling you have specified. You can narrow that down to something like:

        .contentTable td
        {
        height:30px;
        padding-right: 10px;
        }
        .contentTable tr
        {
        border-bottom: 1px solid #C0C0C0;
        }

        The .contentTable defines a css class which you can now apply to a table in your content place holder like so:

        The data

        Hope that helps

        E Offline
        E Offline
        Elham M
        wrote on last edited by
        #3

        Thanks.:thumbsup: It works correctly.

        1 Reply Last reply
        0
        • E Elham M

          Hi guys, I have table in master&contentpage and in my content page when I add style it apply to both master and contentpage But I want just content page give this style what can I do?below is my code

          td{height:30px; padding-right: 10px}
          tr{border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #C0C0C0; }
          

          Thanks.

          A Offline
          A Offline
          apadana_1989
          wrote on last edited by
          #4

          qq

          E 1 Reply Last reply
          0
          • A apadana_1989

            qq

            E Offline
            E Offline
            Elham M
            wrote on last edited by
            #5

            Hi What do you mean Mr.Inanloo?!!! Where do you work now?Is it OK?

            A 1 Reply Last reply
            0
            • E Elham M

              Hi What do you mean Mr.Inanloo?!!! Where do you work now?Is it OK?

              A Offline
              A Offline
              apadana_1989
              wrote on last edited by
              #6

              سلام چه خبر ما که داریم می ریم سربازی

              E 1 Reply Last reply
              0
              • A apadana_1989

                سلام چه خبر ما که داریم می ریم سربازی

                E Offline
                E Offline
                Elham M
                wrote on last edited by
                #7

                Send me your Email.

                A 1 Reply Last reply
                0
                • E Elham M

                  Send me your Email.

                  A Offline
                  A Offline
                  apadana_1989
                  wrote on last edited by
                  #8

                  apadana_1989@yahoo.com ali.inanloo.1989@gmail.com

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups