Re: [css-d] Logo in a div
Hi Brian, CSS works better when the page structure is not minimal. Putting a logo inside a div allows you to add further styles to the context you're currently using. For example, you could add a background image (or more images with CSS3) to the div, thus creating a more visually appealing effect for your logo. It's a design choice, not a semantic choice in the strict sense of the term. HTH :-) Gabriele Romanato -- http://www.css-zibaldone.com/ http://www.css-zibaldone.com/test/ (English) http://www.css-zibaldone.com/articles/ (English) http://onwebdev.blogspot.com/ (English) __ css-discuss [css-d@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/
Re: [css-d] Logo in a div
Brian M. Curran wrote: Why does www.seobook.com put his logo in a div? It seems like its' only purpose is to hold the code class=logo. Wouldn't it have been easier to put the class=logo in the img tag like how I did on my site: www.draftingservices.com ? Well, clearly I don't /know/ why he did it that way, but looking at the code it is not only an IMG that is within the DIV -- there is a surrounding A as well. Which means that he can style (e.g.) .logo A and .logo IMG which would not be possible if the class were associated solely with the IMG. Philip Taylor __ css-discuss [css-d@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/
Re: [css-d] Logo in a div
On Mon, Jul 18, 2011 at 11:00 AM, Brian M. Curran br...@draftingservices.com wrote: Hello, Why does www.seobook.com put his logo in a div? It seems like its' only purpose is to hold the code class=logo. Wouldn't it have been easier to put the class=logo in the img tag like how I did on my site: www.draftingservices.com ? For myself, I find that using an enclosing div rather than the raw img makes it that much easier to extend the layout with background or text elements. Personal preference I suppose. But often I will do things that might not make sense in the immediate layout but provide a stepping stone toward later development -- a bit of agile programming. Regards, Claude Needham __ css-discuss [css-d@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/
Re: [css-d] Logo in a div
On 7/18/11 2:00 PM, Brian M. Curran wrote: Why does www.seobook.com put his logo in a div? It seems like its' only purpose is to hold the code class=logo. Wouldn't it have been easier to put the class=logo in the img tag like how I did on my site: www.draftingservices.com ? Brian Less is more. Best, Ludwig Mies van der Rohe Chicago -- http://chelseacreekstudio.com/ __ css-discuss [css-d@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/
Re: [css-d] Logo in a div
Hi Brian, CSS works better when the page structure is not minimal. Putting a logo inside a div allows you to add further styles to the context you're currently using. For example, you could add a background image (or more images with CSS3) to the div, thus creating a more visually appealing effect for your logo. It's a design choice, not a semantic choice in the strict sense of the term. HTH :-) Gabriele Romanato Thanks Gabriele. .Given the different responses I received, all of which were helpful, I just added a div around my logo. Perhaps I'll use it for styling purposes in the future. - Time will tell. -- Brian =) __ css-discuss [css-d@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/