Dear CSS gurus, 

I miss you. :) Really. I've been struggling with PHP and MVC structures, and
my brain isn't so elastic that allows me to focus on different subjects as
those. Not that I consider myself a big help but, anyway, sorry for being
away.

Now the css:

I'm trying to fix some css that has been passed to me, without writing all
from the beginning, however, I have a few questions:

1)
I see a "non semantic approach" if I may call that, by using empty <p> tags
to apply a clear property. Something like: 

<p class="clear" />

And on the css have, something as:
.clear 
{
        clear:both;
}


Is this technique valuable for some specific reason(s), or
can we just apply "clear:both;" directly on the css paragraph parent
element, instead of creating new empty html tags? 


2) I'm getting the following warnings:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.nuvemk.com
%2Frebelate%2Frebelatehome%2Fhome.html&profile=css21&usermedium=all&warning=
1&lang=en

"Same colors for color and background-color in two context (...)"

However, this doesn't seem illogical, I mean, yes, for some elements we have
white color properties, for other background-color properties. If they are
not nested one on each other, why are we getting those warnings?

#mainMenu li a:link,li a:visited 
{
        *color:#fff;*
        text-decoration:none;
        padding: 3px 10px 8px 10px;
        margin-right:10px;
}

And the boxes:

#box1 
{
        float:left;
        width:170px;
        height:100px;
        margin-right:10px;
        *background-color:#fff;*
}


#box2 
{
        float:left;
        width:170px;
        height:100px;
        margin-right:10px;
        *background-color:#fff;*
}


#box3 
{
        float:left;
        width:170px;
        height:100px;
        *background-color:#fff;*
}



Thanks in advance,
Márcio

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to