Previous Message
Next Message

Every image inside a div - newbie trying to learn

Sent by Marcelo Wolfgang on 9 August 2004 05:05


Thanks for all the explanations I think I understand to what the
decalrations translate now, and that's a big advance.

The <div class="post"> surrounding all the posts didn't werk, I had to
use the <p class="itemBody"> that comes just before of the
<$BloggerItem> as in my code:

<div class="post">
<tr>
       <td class="blogtext" bgcolor="#IIF(item MOD 2, DE('DADADA'),
DE('F0F0F0'))#">
               <p class="ItemTitle"><span
class="ItemDateTime"><$BlogItemDateTime$>
-</span> <BlogItemTitle><$BlogItemTitle$></BlogItemTitle></p>
               <p class="ItemBody"><$BlogItemBody$></p>
       </td>
</tr>
</div>

but only doubt that remains is, if the class=post contains the class
itembody, didn't it was suppose to it to ineherit it's declarations ?
Is there any logic why using .ItemBody IMG{ ... } works and .Post IMG{
.... } don't ?

thanks again for the help

[]´s
Grillo

On Sun, 08 Aug 2004 16:53:08 -0700, Paul Novitski
[EMAIL-REMOVED]> wrote:
> At 03:03 PM 8/8/2004, Marcelo Wolfgang wrote:
> >1- Is it possible to have every img tag inside a div, have it's own style ?
> >
> >I know that if I define img { style } it will apply it to every img
> >tag, but what I want is that only images that are inside my <div
> >class="post"> to have certain style.
> 
> Try:    div.post img {...}
> or:     .post img {...}
> 
> meaning: apply this style to every img element that is nested inside a div
> (or: any element) with the class "post".
> 
> The selector #post indicates an element with "post" as the id, not the class.
> 
> 
> >2- is possible to have the property "align="left"" of the img tag
> >declared in css ? I1ve searched through the css properties in top
> >style but couldn't think anything ... ?
> 
> Try:    img {float: left}
> 
> Paul 
> 
> 
> 
> 
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: