Ok,
I signed up for a blogger.com account today and when I went to edit
the template design I noticed it is written in pure CSS. At the sight
of this I danced for joy, as I am currently writing a dotnet asp
application that will use css positioning for the content.
I picked apart all of the templates at blogger.com and understand what
they were doing with all of the CSS code. There was only one part that
I did not quite understand...
In most of the templates they were double wrapping tags for any
content areas. example:
css:
#sidebar {
background:#cdb url("http://www.blogblog.co m/no897/corner_sidebar. gif")
no-repeat left top;
width:254px;
float:right;
padding:0;
color:#356;
}
#sidebar2 {
margin:0;
padding:2px 20px 10px;
}
Then in the html they have:
<!-- Begin #sidebar -->
<div id="sidebar"><d iv id="sidebar2">
Same with #main & #main2.
Why are they putting half of the tag in one div and the other half in
another and in the html they always appear one right after the other?
Couldn't they just combine both css into one id and then that would
eliminate the second "wrapped" css id?
I signed up for a blogger.com account today and when I went to edit
the template design I noticed it is written in pure CSS. At the sight
of this I danced for joy, as I am currently writing a dotnet asp
application that will use css positioning for the content.
I picked apart all of the templates at blogger.com and understand what
they were doing with all of the CSS code. There was only one part that
I did not quite understand...
In most of the templates they were double wrapping tags for any
content areas. example:
css:
#sidebar {
background:#cdb url("http://www.blogblog.co m/no897/corner_sidebar. gif")
no-repeat left top;
width:254px;
float:right;
padding:0;
color:#356;
}
#sidebar2 {
margin:0;
padding:2px 20px 10px;
}
Then in the html they have:
<!-- Begin #sidebar -->
<div id="sidebar"><d iv id="sidebar2">
Same with #main & #main2.
Why are they putting half of the tag in one div and the other half in
another and in the html they always appear one right after the other?
Couldn't they just combine both css into one id and then that would
eliminate the second "wrapped" css id?
Comment