Hello guys.
I’m building a CMS and I’m stuck on using the right markup for the “tools” before the datagrid of records: I mean, the “Add new record”, “records X-Y of Z”, “Pages: < 1 2 3 >”, etc. stuff
Maybe it’s a dumb question but, apart from CSS presentation, I have two choices (please note that I must separate the class=“left” from the class=“right” as in both examples: in other words, I can’t change the markup logical):
Ex.1 - using lists
<ul class="left">
<li><a href="#">Add new record</a></li>
<li>Records 1-20 of 100</li>
</ul>
<ul class="right">
<li>Pages: <a href="#">1</a> <a href="#">2</a> <strong>3</strong> <a href="#">4</a> <a href="#">5</a></li>
</ul>
Ex. 2 - using DIVs
<div class="left">
<div><a href="#">Add new record</a></div>
<div>Records 1-20 of 100</div>
</div>
<div class="right">
<div>Pages: <a href="#">1</a> <a href="#">2</a> <strong>3</strong> <a href="#">4</a> <a href="#">5</a></div>
</div>
I saw the markup of some Forums (they use the same “tools”) and seems nobody uses lists for this job, so I wonder “are list semantically correct to use in this example?”. On the other hand, DIVs give me the advantage to look consistently if there is not a style sheet - while left and right lists appear visually “separated” -, but I’d avoid to suffer from “divitis”
So, what’s your advice?
Thanks for suggestions!