Forums

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.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257281
    [email protected]
    Participant

    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

    #257284
    JeroenR
    Participant

    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;}
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.