Marcelo de Moraes Serpa wrote:
> <div id="header">
> <div id="branding"></div>
> </div>
>
> CSS:
>
> #header { ... }
> #branding {...}
>
> However, I've saw many css scripts using cascading with id. Would it
> make any difference to do this way: #header #branding { ... } ?
Makes no difference - apart from added specificity which isn't called
for in your case.
In a simple case like that it'll make just as much sense to do it this
way...
<div id="header">
<div></div>
</div>
CSS:
#header { ... }
#header div {...}
If the logo is a foreground-image, then the following may be even better...
<div id="header">
<img>
</div>
CSS:
#header { ... }
#header img {...}
...but it depends a bit on how you write and organize your source-code
and stylesheets.
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/