How to delete mystery div
Permalink
I'm building a site with the Whitespace template. I've been merrily editing away at the css & php/html with no problems. I decided to try to edit the header within c5... that is to use the "design" feature to format a background image, text and links.
Apparently c5 wraps a <div> tag around the element that has the custom design applied to it. I've decided to edit the template to get the effect I want (since the client won't need to edit it at all), but I can't seem to get rid of the unwanted <div> tag or its unwanted formatting.
How can i get rid of that extra, unwanted tag? It contains some inline CSS that's messing up my design.
Apparently c5 wraps a <div> tag around the element that has the custom design applied to it. I've decided to edit the template to get the effect I want (since the client won't need to edit it at all), but I can't seem to get rid of the unwanted <div> tag or its unwanted formatting.
How can i get rid of that extra, unwanted tag? It contains some inline CSS that's messing up my design.
Would it work to delete the block, create it again and apply your custom template? Once you use the Design panel to apply inline styles, I'm not sure if there's a way to reset the block
I tried to delete the block, but that doesn't get rid of the mystery div. It reappears every time I place a copy of that block on that page.
Apparently it's a device for the system to add custom formatting. It makes sense, but it would be nice to have better control over it.
I did find it in the MySQL table 'CustomStyleRules'. Looks like the system automatically adds it if there is an entry in that table. Deleting the entry from the table removes it from the page.
Probably not the cleanest way to fix this, but it works for me!
I don't recommend anyone do this unless you *really* know what you're doing. It's possible to mess up your entire C5 install by deleting or changing something in the database!
Apparently it's a device for the system to add custom formatting. It makes sense, but it would be nice to have better control over it.
I did find it in the MySQL table 'CustomStyleRules'. Looks like the system automatically adds it if there is an entry in that table. Deleting the entry from the table removes it from the page.
Probably not the cleanest way to fix this, but it works for me!
I don't recommend anyone do this unless you *really* know what you're doing. It's possible to mess up your entire C5 install by deleting or changing something in the database!