Hi,
I don't even know if this is possible but it seems like it should be...
I'd like to build a 'building block' of html which will then be reused in multiple places in my page.
So let's say i have the following which I'd like to class as 'atom':
.atom {
width:1px;
height:1px;
background-color:red;
}
Then have another class called a 'molecule'... Is it possible to define each molecule as containing exactly 3 atoms, without specifically hard-coding 3 atoms into every molecule div?
Then later what if I want to have:
<div class='goo'>
</div>
...which automatically displays 100 molecules.
So then after my CSS is set up, the HTML to display 300 atoms would simply be:
<html>
<body>
<div class='goo'>
</div>
</body>
</html>
Is that possible? How to do it?
Thanks