SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css for search results

    i have added a site search to my website www.theoldstuff.co.uk but when the search results show up on my search_page.html it is not using my current css.
    it is centering the results and has green links which looks very messy. Anyone know how i can change this please?

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,941
    Mentioned
    215 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    You could add:

    Code CSS:
    text-align: left;

    to div#content.

    That would at least get rid of the centreing effect

    P.S. All of the styles for that page appear to be defined in a file called "find_search.php"

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,210
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    The HTML output for those search results is pretty awful, so the ideal would be to fix that.

    But if you can't, you can at least mess around with your CSS, but adding things like this:

    Code:
    #content {
      text-align: left;
    }
    
    #content small font {
      color: #78000E !important; 
      padding-right: 5px; 
      font-size: 1.125em;
    }
    
    #content small br {
      display: none;
    }
    Edit:

    Partly beaten by Pullo.

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats brilliant thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •