Quote:
Originally Posted by AfterWorldForum
Thanks for that, Boofoo. It's not that I cannot understand the reasoning behind the CSS switch, but having to create a simple table by using various nested DIVs just seems counter-productive.
I and many others are looking for speed in development, and having to type more (much more) means less speed.
How would I use the restore class? Could you please give an example?
Thanks
Peter
|
I used it for my Site Map hack update as well as my User CP Referral ID hack update. I also didn't use tables this time which made everything a lot easier. Here is an example:
Code:
<div class="restore">
<ul>
<li><strong><a href="{vb:raw vboptions.bburl}/calendar.php" title="{vb:rawphrase sm_calendarlink_title, {vb:raw bbuserinfo.username}}">Calendar</a></strong></li>
<li><strong><a href="{vb:raw vboptions.bburl}/sendmessage.php" title="{vb:rawphrase sm_contactlink_title, {vb:raw bbuserinfo.username}}">Contact Us</a></strong></li>
<li><strong><a href="{vb:raw vboptions.bburl}/faq.php" title="{vb:rawphrase sm_faqlink_title, {vb:raw bbuserinfo.username}}">FAQ</a></strong></li>
<li><strong><a href="{vb:raw vboptions.bburl}/memberlist.php" title="{vb:rawphrase sm_memberslink_title, {vb:raw bbuserinfo.username}}">Members List</a></strong></li>
<li><strong><a href="{vb:raw vboptions.bburl}/online.php" title="{vb:rawphrase sm_whosonlinelink_title, {vb:raw bbuserinfo.username}}">Who's Online</a></strong></li>
</ul>
</div>
Without the restore there, the indentation and bullets no longer showed in that code. If I understand it right, vb 4 now resets the browsers' default rendering of certain HTML elements and uses CSS for it instead. The restore is something they added to reverse that for people who need or want it.
Try this:
<strong>Hello there!</strong> without the div restore wrapping and you will see that it doesn't work. But if you do this:
Code:
<div class="restore">
<strong>Hello there!</strong>
</div>
Then it becomes bold again. <b> tags work fine, though. Here is a link to the post about it on the com.
http://www.vbulletin.com/forum/proje...?issueid=37123