0
I came across the following problem, with the code below I intended to add more fields without repeating the divs
.
Code:
<? foreach($itens as $myrow){ ?>
<div id="LISTA1_FUNDO_PRETO">
TITULO</div>
<?}?>
What I really wanted was to do this without divs
:
<? foreach($itens as $myrow){ ?>
<div id="LISTA1_FUNDO_PRETO">
TITULO</div>
<div id="LISTA1_FUNDO_BRANCO">
TITULO</div>
<?}?>
Now I doubt you want the Divs with numbered id or put a class in each div?
– Adir Kuhn
your question is on the boundary between "close" or keep open.. If you can answer the @Adir question, I think the question will be more valid.
– Daniel Omine
put a class in each div, to make this effect: link that is, in each data that is inserted, first comes the white background, then the black, and then comes back the white and so on ..
– thecreator