1) How to add border and remove hover effect for images in single page ??
2) How to add blog content to my website. I try to add blog menu in my website but the content is same with featured web. I need to write article for my blog.
You can do this by adding a style information to the img tag. So if you’re using the wordpress editor you’ll see something like:
img src="wp-content/uploads/2010/05/your-image.jpg" alt="" title="" class="alignnone size-full wp-image-74"
add style=”border: 5px;” to this tag (change the value of 5px to any value you like) – it should look like this:
img src="wp-content/uploads/2010/05/your-image.jpg" alt="" title="" class="alignnone size-full wp-image-74" style="border: 5px;"
If you’ve many images you want to display with a border you can also define a class in the stylesheet ( filename extension .css). The syntax should look like this:
Now if you want to display an image with a border just add the class image-border to the image. You don’t need the style information anymore.
img src="wp-content/uploads/2010/05/your-image.jpg" alt="" title="" class="alignnone size-full wp-image-74 image-border"
If you want a colored border just add this value to your stylesheet definition or to the style=”” tag.
thank Dude, thank for your help. But this is not what i want.
I dont want add the script one by one in my post. I need it amend directly in my style.css.
i have add
border:5px solid #fff;
but this only effect to my single gallery image page ( featured web page doesnt effect )
wait for Kriesi answer.
The topic ‘How to add border for images in single page ??’ is closed to new replies.