1 reply [Last post]
ProPokerUK
ProPokerUK's picture
Offline
Regular
Reading, UK
Last seen: 33 weeks 5 days ago
Reading, UK
Timezone: GMT+1
Joined: 2017-11-05
Posts: 11
Points: 18

Hi

Have noticed that different sites specify the page Wrapper as either an ID or a CLASS.

Why the different preferences, and which is the best way to go for a Box-Grid layout ?

cheers

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 17 hours 29 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9715
Points: 3791

It depends

If only one wrapper, use an id. If multiple wrappers on the page, use class.

g

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.