1 reply [Last post]
ProPokerUK
ProPokerUK's picture
Offline
Regular
Reading, UK
Last seen: 1 year 4 weeks 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: 13 hours 38 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9738
Points: 3817

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.