I have already shown you that you can modify the css of your article. Adding classes and changing the layout to fit your needs. CSS can be very finiky so if you do change something just ensure that it works well in the preview, on all screens (you can shrink your browser appropriately). CSS has many, many attributes and there is literally no way I can show you everything you could possibly do. But please keep in mind
If you find yourself writing the same rule over and over on all your articles. Let me know and I will add it to the default css. This is ultimately better because if we want to change the rule for a new site, we will simply have to do it in one file (the default css file) as opposed to dozens if not hundreds of articles individual css modifiers.
I hesitated to add this feature. I wanted you to have complete control over your content, it is my hope that you never really need to use this, that most of your needs are handled simply through the default css. Making sure the site and your articles have a consistant, simple, and elegant feel is more important than experimenting with crazy options. Just because you can doesn't mean you should. Having said that, I may remove it/limit it for some authors so that they don't get crazy with their articles.
Feel free to use general rules, all of your css modifications will be scoped within this articles "div" and this article alone.
Here is the syntax
Changing the color of the first h3 in your article
h3:first-of-type {
color: blue;
}
selector:second-selector {
attribute: rule;
second-attribut: rule2;
}
If something isn't doing what it's supposed to do, then you need to check the syntax because the less parser will fail if it is wrong.
Clearing your floats appropriately
Floating objects is a great way to have them move content (say an image) to one side and have text wrap around it beautifully of the screen, but there is the caviat that it will break out of it's containing div
Lorem ipsum dolor sit amet, qui an graece definiebas definitionem, no dolor facete mei. Vis mutat rebum noluisse ne, ut insolens neglegentur usu. Has ut nostro regione dolorem, ad ubique dolorem fabellas vix. Et cibo verterem nec, no cum elit constituto delicatissimi. Solum nemore sensibus per ad, verear utamur te vel. Eripuit instructior his et. At modo discere neglegentur sed, sea an munere principes, est ne invenire tincidunt posidonium.
Te causae adipiscing mel. Id eam tale fugit semper, ex graece molestiae vituperatoribus vis, debet phaedrum sensibus vis in. His corrumpit euripidis ex, tamquam salutatus pri et. Dicit postea vivendo mel no. Est impedit iudicabit incorrupte at, omnis offendit at qui, ea eum alii petentium.
Pri assentior prodesset in, ea mundi aliquip eripuit vis. Feugiat omittam id has. Aperiam postulant scribentur an nec, nam eu porro altera antiopam, aliquid reformidans pri no. Eu quo iudico homero accusam, ea veri nonumy signiferumque his.
By adding the uk-clearfix
selector, the wrapper stays within its wrapping divider.
Lorem ipsum dolor sit amet, qui an graece definiebas definitionem, no dolor facete mei. Vis mutat rebum noluisse ne, ut insolens neglegentur usu. Has ut nostro regione dolorem, ad ubique dolorem fabellas vix. Et cibo verterem nec, no cum elit constituto delicatissimi. Solum nemore sensibus per ad, verear utamur te vel. Eripuit instructior his et. At modo discere neglegentur sed, sea an munere principes, est ne invenire tincidunt posidonium.
Te causae adipiscing mel. Id eam tale fugit semper, ex graece molestiae vituperatoribus vis, debet phaedrum sensibus vis in. His corrumpit euripidis ex, tamquam salutatus pri et. Dicit postea vivendo mel no. Est impedit iudicabit incorrupte at, omnis offendit at qui, ea eum alii petentium.
Pri assentior prodesset in, ea mundi aliquip eripuit vis. Feugiat omittam id has. Aperiam postulant scribentur an nec, nam eu porro altera antiopam, aliquid reformidans pri no. Eu quo iudico homero accusam, ea veri nonumy signiferumque his. Nulla possim vivendo ius in, eam congue semper facilisis id. Vide choro ne his, feugait vivendo cotidieque cum ex.
Margins create space outside of an element
Look at our blue image, it has 15px worth of space around it.
Lorem ipsum dolor sit amet, qui an graece definiebas definitionem, no dolor facete mei. Vis mutat rebum noluisse ne, ut insolens neglegentur usu. Has ut nostro regione dolorem, ad ubique dolorem fabellas vix. Et cibo verterem nec, no cum elit constituto delicatissimi. Solum nemore sensibus per ad, verear utamur te vel. Eripuit instructior his et. At modo discere neglegentur sed, sea an munere principes, est ne invenire tincidunt posidonium.
Here is some text inside the element
Te causae adipiscing mel. Id eam tale fugit semper, ex graece molestiae vituperatoribus vis, debet phaedrum sensibus vis in. His corrumpit euripidis ex, tamquam salutatus pri et. Dicit postea vivendo mel no. Est impedit iudicabit incorrupte at, omnis offendit at qui, ea eum alii petentium.
Pri assentior prodesset in, ea mundi aliquip eripuit vis. Feugiat omittam id has. Aperiam postulant scribentur an nec, nam eu porro altera antiopam, aliquid reformidans pri no. Eu quo iudico homero accusam, ea veri nonumy signiferumque his. Nulla possim vivendo ius in, eam congue semper facilisis id. Vide choro ne his, feugait vivendo cotidieque cum ex.
Padding creates space inside of an element
Look at our blue image text, it is 15px worth of space from the edge of the box;
Lorem ipsum dolor sit amet, qui an graece definiebas definitionem, no dolor facete mei. Vis mutat rebum noluisse ne, ut insolens neglegentur usu. Has ut nostro regione dolorem, ad ubique dolorem fabellas vix. Et cibo verterem nec, no cum elit constituto delicatissimi. Solum nemore sensibus per ad, verear utamur te vel. Eripuit instructior his et. At modo discere neglegentur sed, sea an munere principes, est ne invenire tincidunt posidonium.
Here is some text inside the element
Te causae adipiscing mel. Id eam tale fugit semper, ex graece molestiae vituperatoribus vis, debet phaedrum sensibus vis in. His corrumpit euripidis ex, tamquam salutatus pri et. Dicit postea vivendo mel no. Est impedit iudicabit incorrupte at, omnis offendit at qui, ea eum alii petentium.
Pri assentior prodesset in, ea mundi aliquip eripuit vis. Feugiat omittam id has. Aperiam postulant scribentur an nec, nam eu porro altera antiopam, aliquid reformidans pri no. Eu quo iudico homero accusam, ea veri nonumy signiferumque his. Nulla possim vivendo ius in, eam congue semper facilisis id. Vide choro ne his, feugait vivendo cotidieque cum ex.