The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › I want to Bold my text-section using mouse drag scroll.
Hi, want to get my text bold where ever i drag a mouse on any section and the same effect i have seen today on this particular page. i have mention this link. please see it and tell me how it will achieved. Link – http://www.digit.in/telecom/vodafone-announces-rs-244-prepaid-plan-with-70gb-4g-data-for-70-days-36239.html
It is achieved by overriding the default styling for selected text. In their stylesheet you can find these lines:
::selection {background:transparent;text-shadow:#000 0 0 2px;} ::-moz-selection {background:transparent; text-shadow:#000 0 0 2px;} ::-webkit-selection {background:transparent; text-shadow:#000 0 0 2px;} ::-o-selection {background:transparent; text-shadow:#000 0 0 2px;}