I have wandered upon this problem before and it turns out:
::selection (or whatever selection you might use)
does not work on an break line tag (br).. remove them and use margins instead. =) Here is an fiddle to demonstrate: Example
More Related Contents:
- What are the steps to make a HTML design responsive? [closed]
- How do I vertically center text with CSS? [duplicate]
- Fill the remaining height or width in a flex container
- float:left; vs display:inline; vs display:inline-block; vs display:table-cell;
- Why are my CSS3 media queries not working on mobile devices?
- How does the “position: sticky;” property work?
- A Space between Inline-Block List Items [duplicate]
- CSS vertical alignment of inline/inline-block elements
- How to remove the space between inline/inline-block elements?
- Colspan/Rowspan for elements whose display is set to table-cell
- How do I install a custom font on an HTML site
- What’s a 3D doing in this HTML?
- Circular percent progress bar
- CSS side by side div’s auto equal widths
- Setting table column width
- How to force table cell content to wrap?
- Inline style to act as :hover in CSS
- Default :target with CSS
- How to center a (background) image within a div?
- Changing the highlight color when selecting text in an HTML text input
- Why do my list item bullets overlap floating elements
- How to add a background image on top of a previous background image?
- Css hover sometimes doesn’t work on svg paths
- Unwanted border-radius corners around images in Brave/Chrome browser
- Bootstrap 3 – show collapsed navigation for all screen sizes
- How can I prefix ordered list item numbers with a static string using CSS?
- How do I horizontally center an absolute positioned element inside a 100% width div? [duplicate]
- Prevent floated divs from wrapping to new line
- How to get horizontal scroll bar in select box in IE?
- Can you have a within a ?