PassMark Logo
Home » Forum

Adding generated content into search results CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnfox
    Junior Member
    • Sep 2007
    • 12

    #1

    Adding generated content into search results CSS

    How do I add generated content using the ":before" and ":after" pseudo-classes in conjunction with the ZOOM CSS class: ".description"?
    John Fox
    www.marketing-playbook.com
  • Ray
    Administrator
    • Dec 2004
    • 4357

    #2
    Just as you would for any other CSS class.

    An example below:
    Code:
    .description { font-size: 100%; color: #008000; }
    .description:before { content: "SOME BEFORE TEXT"; }
    .description:after { content: "SOME AFTER TEXT"; }
    Note that not all browsers support this, as far as I know. For one, IE7 does not seem to support this. Firefox seems to.

    Here's a page that demonstrates this. Load it up in IE7 and Firefox, and you'll see that the extra graphic and text won't appear in IE7. It's documented to not work in ANY version of Explorer.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    • johnfox
      Junior Member
      • Sep 2007
      • 12

      #3
      Works great. thanks!
      John Fox
      www.marketing-playbook.com

      Comment

      Working...