Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the browser-default background color when selecting text?

Tags:

html

css

When you select text in a webpage, the background gets a default blue color. What exact color code does this blue color have?

like image 766
Fellow Stranger Avatar asked Apr 18 '13 23:04

Fellow Stranger


People also ask

What is default Colour of text in browser?

By default, most of the browser highlights the selected text in blue background.

What is the default browser background color?

IE was the only one that has a white browser background by default. Others followed suit. Even if like me you didn't lived those times, you probably encountered these greyish screenshots of the past. And so Internet Explorer made a decision that would shape the web as we know it now: white.

What is the default color for text highlighting?

On the Home tab of the ribbon, the default color for the Text Highlight tool is yellow.

Which color is used for background color?

Background-color values can be expressed using rgb such as rgb(255,255,255), rgb(0,0,0), and rgb(255,0,0). Background-color values can be expressed as named colors such as white, black, and red.


1 Answers

  1. Safari 6.0.3 Mac*: #B4D5FE
  2. Chrome 26.0.1410.65 Mac*: #ACCEF7
  3. Firefox 19.0 Mac*: #B4D5FF
  4. Chrome 26.0.1410.64 m Windows 8+: #3297FD
  5. Firefox 20.0.1 Windows 8+: #3399FF
  6. Safari 5.1.7 Windows 8+: #3298FD
  7. Internet Explorer 10.0.4 Windows 8+: #3399FF

*Found using ColorSnapper for Mac+Found using ColorSchemer for Windows

And here's a screenshot of that information with the hex color codes highlighted in the same color:

Screenshot of hex color codes highlighted in same color


This will be a never ending list, however, since each...

  1. Browser
  2. Operating System
  3. Browser Version (maybe)

...will have a different color. Also, as of CSS3, you can change the color using:

::selection{     background-color:#000; } 
like image 54
4 revs, 3 users 69% Avatar answered Sep 20 '22 00:09

4 revs, 3 users 69%