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)
-   -   [SOLVED] How can I style the image retrieved with the_content() tag? (http://forum.bytesforall.com/showthread.php?t=3961)

reradu Oct 19, 2009 09:27 AM

[SOLVED] How can I style the image retrieved with the_content() tag?
 
Does anyone know where can I style the image retrieved using the_content() tag?

juggledad Oct 19, 2009 09:36 AM

Well not knowing how you are using it, I would suggest that you use it where ever, then look at teh generated page source and find out what it creates then use that to build your CSS selector and rule to customize it.

reradu Oct 19, 2009 10:54 AM

<img class="alignright size-medium wp-image-127" ... >

This is what the source code is showing where the image is displayed using the_content().
I have little to zero knowledge on CSS and even trying to read a bit of documentation didn't help.

I tried to put:

img#wp-image-127
{
border: solid 1px #dddddd;
background-color: #f3f3f3;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

in HTML/CSS inserts, but since it's not working, I reckon it's stupid. Stuck again.
btw: the site: www.cashewcenter.com
I am talking about the image that appears on the right side of "Welcome to", which on the full About page is bordered.

juggledad Oct 19, 2009 11:12 AM

a class= uses a '.' while an id= uses the '#' so try 'img.wp-image-127'

reradu Oct 19, 2009 11:19 AM

It works! Thanks alot!


All times are GMT -6. The time now is 10:51 AM.

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