Forums / Templates, Stylesheets, Page Layout / css changes on search results page

css changes on search results page

Views: 1,304

Results 1 to 4 of 4
4 Mar 2011, 10:10 PM
#1
weirdorecords avatar

weirdorecords

New Zenner

Join Date:
May 2010
Posts:
72
Plugin Contributions:
0

css changes on search results page

Hiya. I'd like to put some padding around the images that show up in the search results page. However, if I add padding to .productdataListing. in the stylesheet, it puts the padding on every image in the centerbox, making for trouble in the rest of my layout. Where should I add (or definte) some local css so that it just affects that particular page?

4 Mar 2011, 10:11 PM
#2
weirdorecords avatar

weirdorecords

New Zenner

Join Date:
May 2010
Posts:
72
Plugin Contributions:
0

Re: css changes on search results page

sorry- that's "define" above.

5 Mar 2011, 11:16 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: css changes on search results page

You could do something like this:

#advSearchResultsDefault img {padding:2em;}

Install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. An essential tool.

Some prefer Firebug, which does much the same thing.

7 Mar 2011, 12:56 AM
#4
weirdorecords avatar

weirdorecords

New Zenner

Join Date:
May 2010
Posts:
72
Plugin Contributions:
0

Re: css changes on search results page

I do have the Firefox CSS extension, but it hadn't helped me figure this one out. Your suggestion worked well though, so many thanks.