
Originally Posted by
Stomme poes
I do this (often, esp on main pages)
three divs (or whatever, but usually divs) for a main page, to perhaps showcase three (or two or four) main elements of (company) that some people would like to have pointed out to them or would like to click directly to. This is currently pretty popular in design, possibly even... trendy (yes, I know I'm not hip enough to make trendy pages; I don't use a Mac).
So for instance, I'm currently doing a moving company's website and they don't just do "moving" but would like to have their main page showcase their "extras" such as
1. Storage for in between moves
2. Repairs (home fixes before moving, including the yard!)
3. Moving shop (buy packing boxes, paper, blankets, roll-containers...)
so just for the main page, I make three boxes with a cute little image, a clickable header (h3 likely), the image is clickable, and some text saying Hey guess what we offer these awesome things to our clients blah blah read more... (this could also be a list, in fact the more I think about it, this one will likely become a list as it mimics the site menu anyway).
These boxes/divs aren't on any other page, and they are basically a showcase, and they are getting a class purely for styling reasons. if they weren't getting styled, they would not get a class. The class lets me either
-set them in a centered row using display: inline-block
-set them in a vertical stack
-offset them to cascade like a staircase
-whatever else I think of when sitting on the john
So, maybe that's abuse, but it seems the only practical way to style some boxes. I use a class, and the class is there purely for styling hooks, not because it has anything, at all, to do with the content. Right now, I'm calling them "Rubrieken" (categories) as they are showcasing other subjects related to the company. But it was nothing more than the first name I pulled outta my butt. Sure, I didn't name them "centeredboxes" but I could have.
Or, I could have added yet another div (or something) and given it an id, and then styled the boxes with #id div {styles;}.
Abuse?
Bookmarks