Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Edit the style of the text selected

    Description

    With some CSS you can easily edit the style of the text selected (background color, text color etc.)

    Demo


    Code

    You have to reply to this topic to see the code (avoid Flood)

    General Informations

    Code tested on: Firefox - PunBBChecked by: MathiasExtra infos: None

    Codes last updated on sun jan 19 2013 by Mathias



    Last edited by Niko on Mon Mar 10, 2014 8:25 pm; edited 3 times in total



    Niko wants you in the team Guest

    Community manager and Administrator at Forumattivo.com

    Paulos
    • Veteran staff member

        Reputation : 12
        Registered on : 2012-03-23
        Posts : 17
      the correct code is this..

      Code:

      ::-moz-selection { color: red;  background: black; }
      ::selection{ color: red;  background: black; }
       

      It doesnt work your code

      Niko
      • Administrator

          Reputation : 319
          Registered on : 2012-02-22
          Posts : 2366
          School of codes courses: coming soon
        @Paulos wrote:the correct code is this..

        Code:

        ::-moz-selection { color: red;  background: black; }
        ::selection{ color: red;  background: black; }
         

        It doesnt work your code

        This is the same:
        ::selection, ::-moz-selection



        Niko wants you in the team Guest

        Community manager and Administrator at Forumattivo.com

        Paulos
        • Veteran staff member

            Reputation : 12
            Registered on : 2012-03-23
            Posts : 17
          Yes but it doesnt work...

          LGforum
          • Veteran staff member

              Reputation : 19
              Registered on : 2012-04-05
              Posts : 77
            Your browser must be CSS3 compatible.

            Niko
            • Administrator

                Reputation : 319
                Registered on : 2012-02-22
                Posts : 2366
                School of codes courses: coming soon
              @LGforum wrote:Your browser must be CSS3 compatible.
              Of course (:



              Niko wants you in the team Guest

              Community manager and Administrator at Forumattivo.com

              hoanglongnhatbao
              • ****


                  Reputation : 3
                  Registered on : 2012-03-22
                  Posts : 54
                The result Niko view demo

                Nick
                • Manager

                    Reputation : 20
                    Registered on : 2012-04-01
                    Posts : 407
                  This is a good code. LGforum has it on his forum and it looks nice!



                  Edit the style of the text selected 15px10
                  Cavour
                  • Administrator

                      Reputation : 21
                      Registered on : 2012-02-15
                      Posts : 179
                      Installing the new status system
                    Hello,

                    This resource has been updated!


                    See you on FMCodes



                    Note: Please contact Niko for forum problems   yes 

                    - editboard@fmcodes.com
                    decru
                    • **


                        Reputation : 2
                        Registered on : 2014-03-12
                        Posts : 16
                        Love Fmcodes
                      Great tutorial..

                      Marcoreus
                      • ***


                          Reputation : 0
                          Registered on : 2014-06-24
                          Posts : 31
                          Love Fmcodes
                        Its Veery Cool

                        madamido
                        • ***


                            Reputation : 0
                            Registered on : 2014-08-20
                            Posts : 25
                            Love Fmcodes
                          thanksssssssssssss

                          gamingdrew
                          • ***


                              Reputation : 0
                              Registered on : 2013-06-11
                              Posts : 33
                            how thanks.

                            Leica
                            • **


                                Reputation : 0
                                Registered on : 2015-04-26
                                Posts : 10
                                Love Fmcodes
                              th nx