Frazer Kirkman (frazer) wrote in css_forum,
Frazer Kirkman
frazer
css_forum

alignments

Hello

Hope someone can help with this problem,
I'm new to css...  so forgive noob questions.

I cant get this image to align properly

<div class="contentYellow">
  <p><img src="help.gif" width="132" border="0" height="159"></p>

<div class="contentYellowText">
blah

</div></div>


css:

.contentYellow{
float:right;
width:200px;
text-align:center;
padding:12px 0 0;
}


It works fine if there are no <p> tags around the image,
but the cms I am using puts the <p> tags in. 

I have tried
.contentYellow p{
align:center
}
and
.contentYellow img{
align:center
}


Thanks in advance

Frazer

  • Post a new comment

    Error

    default userpic
  • 2 comments