CSS styling

By , 3.6.2011 10:17

I always forget a few things about syntax. Although I work with CSS almost every day, sometimes things geta bit confusing.

The relationship between HTML and CSS

HTML code example

<div id="ahoj">
<div class="nazdar">

CSS entry example

#ahoj {..;..;..;}
.nazdar {..;..;..;}

CSS styling override

Use !important in the styling entry.

CSS entry example

ul {margin:0 !important;}

Style clearing

In HTML

<div style="clear:both"></div>

or in the style

{clear:both}

Comments are closed



© This website is under Copyright.   I use webhosting ToJeOno.cz   Based on modified template Panorama of website Themocracy.com

[CNW:Counter]