Redundant Embedded Styles
Permalink
In the doc head of my home page are the following lines...
<style type="text/css">
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle1 {background-image: url('/files/'); background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
</style>
Where are these coming from, and how do I get rid of them? They have no effect whatsoever. The page does have 3 divs with an ID of "areaStyle8", but none have a background image. And then there's the question of why there are 3 divs with the same ID. ID's are supposed to be unique per document.
Anyone have any idea?
-Steve
<style type="text/css">
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle1 {background-image: url('/files/'); background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
#areaStyle8 {background-repeat:no-repeat; }
</style>
Where are these coming from, and how do I get rid of them? They have no effect whatsoever. The page does have 3 divs with an ID of "areaStyle8", but none have a background image. And then there's the question of why there are 3 divs with the same ID. ID's are supposed to be unique per document.
Anyone have any idea?
-Steve
What is the url? What version of concrete5 are you running? What template are you using?
Then we might have an answer (or at the very least, more enticing questions ;-)).
Then we might have an answer (or at the very least, more enticing questions ;-)).
Thanks, tallacman. The URL is not public, as this is on a local test system. I'm using 5.4.0.5, and I'm convinced something's awry with the layout system - at least when you change anything in the "design" dialog for a cell, as that's apparently when C5 adds the areaStyles. They aren't present if you never touch a cell's design dialog.
What's more weird is that the embedded styles remain even after deleting the entire layout from the page. I have to go directly into the DB to delete the cruft.
Ah well, at least I now know never to style a cell from the design dialog. It's evil. I'll stick to stylesheets.
Regards,
-Steve
What's more weird is that the embedded styles remain even after deleting the entire layout from the page. I have to go directly into the DB to delete the cruft.
Ah well, at least I now know never to style a cell from the design dialog. It's evil. I'll stick to stylesheets.
Regards,
-Steve
However, three of them remain, and they apparently correspond to the three layout cells on the page. A couple of things don't make sense though...
1) Each of the style definitions references a separate element (added by C5's layout engine), all of which have the same ID. ID's are supposed to be unique per document. This issue should be addressed.
2) Each of the style definitions needlessly defines an irrelevant property - in this case, background-repeat. No background was ever specified for those cells. The ONLY thing I did was add a class name in the "design" dialog for the cells - that's it. The styling is done through a stylesheet. There is absolutely no need whatsoever for these embedded styles.
Am I missing or overlooking something?
-Steve