Vertical centering in CSS
Actually, as my first question was answered so well, what about quirks mode sites? Is there a solution as neat as the 'dead centre' code?
(before you ask - I won't be responsible for the quirksiness of the sites in question)
(before you ask - I won't be responsible for the quirksiness of the sites in question)
| Phil Teare wrote: |
| Actually, as my first question was answered so well, what about quirks mode sites? Is there a solution as neat as the 'dead centre' code?
(before you ask - I won't be responsible for the quirksiness of the sites in question) |
If the sites in question suddenly want to go from a standard, flowing layout to a dead-centered one, then a significant rewrite of the code is probably in order. That being the case, it shouldn't be an issue to add a Strict doctype (triggering compliant mode) along with the new layout CSS.
If the owner of a standard, flowing site suddenly wants to shoehorn their existing markup into a dead-centered layout, then it behoves you, as the professional, to question their motives and challenge them to back up their decision to show that they're doing it for reasons which will ultimately benefit their users and, consequently, the site owner - as opposed to it being a pointless and potentially counter-productive 'style makeover' brought about by the site owner's recent seduction by a dead-centered website (which was probably built from the ground up with that layout in mind).
As the professional, it's not your role simply to (attempt to) realise whatever stupid ideas they come up with for the site without question, but to advise them on the implications of their choices and to advise them of better solutions and approaches, when they exist.
Agree with the above points. Dead center sites are rare and I only really used for brochure sites and splash pages.
The original source used non-standard doc type and I was working from their file 
Johan De Silva / Portfolio
| Bill Posters wrote: |
| Why wouldn't you be using standards-compliant mode in the first place? |
Johan De Silva / Portfolio
| Johan007 wrote: | ||
Agree with the above points. Dead center sites are rare and I only really used for brochure sites and splash pages.
|
Then perhaps you could use the appropriate doctype to trigger compliant mode and then alter/append the existing CSS accordingly.
If a job's worth doing…
I repeat:
I agree with everything you're both saying, but the world is not perfect place. Now behove your self.
Is there a quirksmode solution?
| Quote: |
| (before you ask - I won't be responsible for the quirksiness of the sites in question) |
I agree with everything you're both saying, but the world is not perfect place. Now behove your self.
Is there a quirksmode solution?



