Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #323

    1) How to add border and remove hover effect for images in single page ??

    http://mampwamp.site50.net/featured-web

    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.

    #30837

    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:

    .image-border {
    border: 5px;
    }

    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.

    Example:

    .image-border {
    border: 5px;
    border-color:#00ff00;
    border-style:solid;
    }

    The Dude

    #30838

    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


    .entry img{
    border:5px solid #fff;
    }

    but this only effect to my single gallery image page ( featured web page doesnt effect )

    wait for Kriesi answer.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘How to add border for images in single page ??’ is closed to new replies.