4 Replies Latest reply: Sep 8, 2009 8:20 AM by Jhabrix RSS

    Styling the <a> tag inline...

    Jhabrix Community Member

      How would one go about styling the a tag inline? No class, no CSS... Inline.

       

      TIA...

       

      JJ

        • 1. Re: Styling the <a> tag inline...
          VinayKSharma Employee Hosts

          You must be having some really one off case that is why you are looking for inline style...

           

          Here is how you do it..

           

          <a href="your url comes here" style="color:#ffcc00; font-size:12px; text-decoration:underline">Click Me</a>

           

          This is just an example which colors your a tag and applies 12px font and underline as decoration. You can define your own per your requirement.

           

          Secondly, the problem with inline style is that you wont be able to capture the 4 states (link, visited, hover, active).

           

          So your link will always look the same in every state.

           

           

           

          Regards,

          Vinay

          • 2. Re: Styling the <a> tag inline...
            Jhabrix Community Member

            vikrish21 wrote:

             

            You must be having some really one off case that is why you are looking for inline style...

             

            Hi Vinay,

             

            Yes, it is a one-off (for an html mailer).

             

            <a href="your url comes here" style="color:#ffcc00; font-size:12px; text-decoration:underline">Click Me</a>

             

            That's what i've done...

             

            Secondly, the problem with inline style is that you wont be able to capture the 4 states (link, visited, hover, active).

             

            So your link will always look the same in every state.

             

            And that is the answer / reason to / for my problem

            • 3. Re: Styling the <a> tag inline...
              VinayKSharma Employee Hosts

              So I believe I answered your query and clarified / confirmed your doubts

               

              Regards

              Vinay

              • 4. Re: Styling the <a> tag inline...
                Jhabrix Community Member

                vikrish21 wrote:

                 

                So I believe I answered your query and clarified / confirmed your doubts

                 

                More or less... but hope springs eternal, etc. etc.