Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Nifty plugin, need CSS advice for it (http://forum.bytesforall.com/showthread.php?t=1107)

paulae Apr 5, 2009 04:24 PM

Nifty plugin, need CSS advice for it
 
I decided I want to show thumbnails on the front page excerpts, so I'm using Thumbnail for Excerpts plugin. It works really well. You have to edit the code to change things, and it gives you the CSS class. I thought I could go into theme options and style the class so the thumbnails would have a 1px black border, but it's not showing up that way. I used this:

Code:

imgtfe {
border: solid 1px #000000;
}

imgtfe is the class. The thumbnails are small, 65px high. I wonder if something that small is by default not "allowed" to have a border?

Flynn Apr 5, 2009 06:24 PM

A dot is missing
HTML Code:

.imgtfe {
border: solid 1px #000000;
}

or, to limit it to images with that class, in case there are other elements with the class imgtfe, too
HTML Code:

img.imgtfe {
border: solid 1px #000000;
}

I usually add the selector (img, div, span, p) etc. too, to make things clearer:
div.classname instead of .classname

dot means class
hash means ID

.classname or img.classname
#idname or img#idname

paulae Apr 5, 2009 08:27 PM

Oh thank you again. Those dots'll get you every time.


All times are GMT -6. The time now is 11:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.