Why do I bother?
Jan. 8th, 2007 07:31 amSo I decided to be a good little web-coder and replace my nested tables (insert hiss) with divisions and css (insert cheers).
The table layout shall remain for the forseeable future.
Why, you ask?
Because formatting text within the divisions clearly requires some kind of fucking advanced degree.
Center tag deprecated - check. Not a problem.
I shall instead merrily place "text-align: center" into my style code. Piece of cake! *saves*
*refreshes*
*text in question has jumped approximately 50 pixels down the page and is still left-aligned*
Ok, maybe I put it in the wrong place.
*experiments*
Nada.
Ok, let me look this up.
*researches*
*experiments with margin:auto, relative positioning, floating, and various other tags, singly and in combination*
*text remains stubbornly left-aligned, though it does progress up and down the page*
*screams and throws things, kicks and stamps feet*
*does more research*
*conducts further experiments*
*text remains stubbornly fucking left-aligned*
Also, for some reason, although if I just type 'blahblahblah' into the div, it properly sits at the top. But if I enclose 'blahblahblah' in any sort of tag (p, ul, ol, etc), it drops about 20 pixels. Toying with padding settings has done nothing to solve this.
In conclusion, tables are not dead. Code-snobs can stick that in their pipes and smoke it.
Edit: Four hours after I started, I've fixed the horizonal alignment problem. The vertical one still sucks donkey dicks.
Edit2: Four hours after that, everything seems to be working correctly. Swear to god if adding in the actual content of any of the pages breaks it, I'm just calling it quits.
This is supposed to be the wave of the future? Clearly, in the future, J.Q. Public will be hiring webdesigners rather than doing his/her own. Which I suppose is what they want.
The table layout shall remain for the forseeable future.
Why, you ask?
Because formatting text within the divisions clearly requires some kind of fucking advanced degree.
Center tag deprecated - check. Not a problem.
I shall instead merrily place "text-align: center" into my style code. Piece of cake! *saves*
*refreshes*
*text in question has jumped approximately 50 pixels down the page and is still left-aligned*
Ok, maybe I put it in the wrong place.
*experiments*
Nada.
Ok, let me look this up.
*researches*
*experiments with margin:auto, relative positioning, floating, and various other tags, singly and in combination*
*text remains stubbornly left-aligned, though it does progress up and down the page*
*screams and throws things, kicks and stamps feet*
*does more research*
*conducts further experiments*
*text remains stubbornly fucking left-aligned*
Also, for some reason, although if I just type 'blahblahblah' into the div, it properly sits at the top. But if I enclose 'blahblahblah' in any sort of tag (p, ul, ol, etc), it drops about 20 pixels. Toying with padding settings has done nothing to solve this.
In conclusion, tables are not dead. Code-snobs can stick that in their pipes and smoke it.
Edit: Four hours after I started, I've fixed the horizonal alignment problem. The vertical one still sucks donkey dicks.
Edit2: Four hours after that, everything seems to be working correctly. Swear to god if adding in the actual content of any of the pages breaks it, I'm just calling it quits.
This is supposed to be the wave of the future? Clearly, in the future, J.Q. Public will be hiring webdesigners rather than doing his/her own. Which I suppose is what they want.