Wanna break your slideshows?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
BedfordWriter
Sr. Propeller Head
Posts: 218
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Wanna break your slideshows?

Post by BedfordWriter »

Just add

Code: Select all

div
{
	clear: both;
}
to your style sheet. The result is that you'll see only the final slide in the show, no matter what.

Took me three hours to track down that mistake. <sigh> Now if I could only remember *why* I added that tag to my style sheet...
NorthEast
Master Propellus Maximus
Posts: 6372
Joined: Mon Mar 05, 2007 8:33 am

Re: Wanna break your slideshows?

Post by NorthEast »

I'd recommend that you never set a style on the base div, span, or img tags.
To a lesser extent, you may also need to take care about what style properties you use with the body tag and lists (ol/ul/li).

If you're producing HTML5, topics in the output will contain a whole load of additional HTML on the page that isn't in your source - it'll add HTML for the skin, proxies, etc.
So what you put in your stylesheet is applied to the whole page, including all the other stuff that's only in the output - so it's easy to apply styles to things you didn't intend to.
BedfordWriter
Sr. Propeller Head
Posts: 218
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Re: Wanna break your slideshows?

Post by BedfordWriter »

Good rules to live by.

My experience is that there's lots of information on the style part of CSS and not nearly enough on the cascading part.
I can hack my way through adjusting styles when I need to, but I'm always tripping over just where the tags are, or should be, applied.
Post Reply