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. How to apply style to controls (urgent)

How to apply style to controls (urgent)

Scheduled Pinned Locked Moved ASP.NET
csshelptutorial
3 Posts 2 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.
  • D Offline
    D Offline
    dj rock
    wrote on last edited by
    #1

    hi all I want to assign style to all my button controls without creating style class in style sheet. I mean that i dont want to assign any css class after creating my control. rather i want create tag such that when i create button control then that tag style will automatically assign to that control... So that i dont need to assign css class to all my control one by one. Please help me

    Regards, DJ Rock

    A 1 Reply Last reply
    0
    • D dj rock

      hi all I want to assign style to all my button controls without creating style class in style sheet. I mean that i dont want to assign any css class after creating my control. rather i want create tag such that when i create button control then that tag style will automatically assign to that control... So that i dont need to assign css class to all my control one by one. Please help me

      Regards, DJ Rock

      A Offline
      A Offline
      Akhilesh Yadav
      wrote on last edited by
      #2

      Hi, Your question is not clear, however acc. to how I understood you can go for usercontrols or custom controls

      cheers, Akhilesh Yadav

      D 1 Reply Last reply
      0
      • A Akhilesh Yadav

        Hi, Your question is not clear, however acc. to how I understood you can go for usercontrols or custom controls

        cheers, Akhilesh Yadav

        D Offline
        D Offline
        dj rock
        wrote on last edited by
        #3

        thanks for reply Ok first i want to make my question cleare. suppose i am creating button control ok?? and without creating any class i want to assign some style to my all button control that i am creating in my app. so want to create something like H1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 2em; font-weight: 700; font-style: normal; text-decoration: none; word-spacing: normal; letter-spacing: normal; text-transform: none; } it will work for H1 tag. so i want to write code so that i can make it work for button and all asp controls. thanks again

        Regards, DJ Rock

        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