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. ASP.NET
  4. css class problem

css class problem

Scheduled Pinned Locked Moved ASP.NET
javascriptcsssysadminhelpquestion
4 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    i want the text alignment center in js file (filename = wr.js) Input { .alignCenter{text-align: center;} } in the source file <asp:TextBox ID="TextBox1" runat="server" CssClass="wr.js">0</asp:TextBox> i think i am doing wrong somewhere?

    E N 2 Replies Last reply
    0
    • S Sonia Gupta

      i want the text alignment center in js file (filename = wr.js) Input { .alignCenter{text-align: center;} } in the source file <asp:TextBox ID="TextBox1" runat="server" CssClass="wr.js">0</asp:TextBox> i think i am doing wrong somewhere?

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      do you mean you want 1. the textbox aligned center? 2. the text aligned center in the textbox usually

      that work usually

      S 1 Reply Last reply
      0
      • E eyeseetee

        do you mean you want 1. the textbox aligned center? 2. the text aligned center in the textbox usually

        that work usually

        S Offline
        S Offline
        Sonia Gupta
        wrote on last edited by
        #3

        what amendments should i do , in css file ?

        Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

        1 Reply Last reply
        0
        • S Sonia Gupta

          i want the text alignment center in js file (filename = wr.js) Input { .alignCenter{text-align: center;} } in the source file <asp:TextBox ID="TextBox1" runat="server" CssClass="wr.js">0</asp:TextBox> i think i am doing wrong somewhere?

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Sonia Gupta wrote:

          i think i am doing wrong somewhere?

          You are doing totally wrong.

          Sonia Gupta wrote:

          in js file (filename = wr.js) Input { .alignCenter{text-align: center;} }

          JS file is for keeping javascript, not for CSS. Put this in a CSS. To make input as a class prefix dot(.) before the name. Go through the CSS Beginner[^] tutorial.

          Sonia Gupta wrote:

          CssClass="wr.js"

          No need to specify extension when referring a class name.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          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