Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ashwini 43 posts 63 karma points
    May 15, 2012 @ 00:33
    ashwini
    0

    how to change the stylesheet of results page ?

    I tried to chane the way the reluts page looks but i am not able to chnage any of the styles. I tried to change it by giving custom properties in custon.css but it would'nt update. I tried to change it in the default XSLT stylesheet but its not changing either....am i doing something wrong ? Please advise..

    Thanks !

    Ashwini.

  • Paul Blair 466 posts 731 karma points
    May 15, 2012 @ 02:57
    Paul Blair
    0

    have you used something like firebug to determine if your CSS properties are being applied? perhaps they are being overridden by other styles....

  • ashwini 43 posts 63 karma points
    May 15, 2012 @ 03:00
    ashwini
    0

    yes i did inspect it using firebug....the styles dont appear anywhere...thats why i am finding it very hard to make any changes to the page....

  • Paul Blair 466 posts 731 karma points
    May 15, 2012 @ 06:13
    Paul Blair
    0

    so when you do a view source of the code and inspect the CSS file it doesn't have your changes in it? have you tried doing CTRL-F5 while viewing the CSS in your browser.

    (I haven't used XSLT search so am just giving generic things I would do. If you think it's something specific to the package then hopefully someone else can help)

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 15, 2012 @ 10:51
    Douglas Robar
    0

    Everything in the output of XSLTsearch has an id or class associated for easy styling. There's also a supplied 'xsltsearch.css' installed that you can reference in your markup to get some default styling (highlighting of search terms, pretty spacing, etc.). 

    As Paul says, there's nothing special about it... XSLTsearch creates markup with id's and classes and you style it just like any other markup with css. If the css isn't loading I would guess you either have an error in the css (missing semicolon or closing brace?), aren't loading the css file with the <style> tag in your markup, or your browser has cached a previous version of the css/html without your changes. Firebug or another 'inspector' tool should sort that out quickly.

    cheers,
    doug. 

  • ashwini 43 posts 63 karma points
    May 16, 2012 @ 15:41
    ashwini
    0

    i will look into the options Douglas/Paul. Thanks a lot for all the inputs...i will let you know what happened :)

Please Sign in or register to post replies

Write your reply to:

Draft