i got stuck in in css of my new blog , all the images are floating to left even i place them at center at the time of posting , a nice man here suggested me to give different div tag to featured image but i am just unable to do this ,, can someone help me please , here goes the url http://jesica89.blogspot.com/2011/06/video-check.html
The "#contentLeft" it's the main container, the "#contentLeft img, #contentLeft a img" afecct all images with or without a link inside the main container. So, all images inside have
The "float:left" is floating your images to the left.
If you want the three align estates (left, right, center) you can create three classes:
.left{ float:left; margin: 5px;} .right{ float: right; margin: 5px; } .center{ /*You need to specify the width of the images in the img tag to get this method working: <img class="center" width="120px/*For example*/">*/ margin: 0 auto; }
And get ride of the "float:left" in the "#contentLeft img, #contentLeft a img".
here is the style sheet
/*----------------------------------------------------
{--------} Content Left Image {--------}
----------------------------------------------------*/
#contentLeft img, #contentLeft a img {
padding: 0;
margin-right:15px;float:left;
}
now please suggest me how to get a different div tag for featured image
The "#contentLeft" it's the main container, the "#contentLeft img, #contentLeft a img" afecct all images with or without a link inside the main container. So, all images inside have
The "float:left" is floating your images to the left.
If you want the three align estates (left, right, center) you can create three classes:
And get ride of the "float:left" in the "#contentLeft img, #contentLeft a img".
And with a:
You can have a nice border effect... ;)
This fix your problem?