things in HTML that make no sense
- Started
- Last post
- 15 Responses
- ukit
Why does the top margin of a block level element collapse with previous adjacent margins such as the top margin of the parent block?
- neverblink0
margin is the distance calculated from the 'other object' - not the other object's margin
- ukit0
I see what you're saying. It seems slightly counterintuitive to me though.
- ********0
I agree
- raf0
"Tableless" CSS took away a few useful layout-setting techniques tables had. Fast forward almost ten years, we're still stuck with this half-baked solution.
What tables had and is gone now:
- autostretch cell width (within a row)
- equal height columns
- vertical centering within a block elementA lot of intuitiveness was taken away too. It's probably good as it made harder for civilians to make websites and provided us more work.
- these are all easily enough replaced with the right css though and pro vs. cons css still wins.airey
- I'm not making an argument pro or con, of course it wins. Just saying it has serious and stupid design flaws.raf
- ..and these are not "easily replaced" - it's always duct taping of some sort.raf
- yeah you're right. although i've always been a fan of the handyman's secret weapon!airey
- 3030
xHTML - x to motherfucking HTML
The most annoying thing is lack of consistency; We have xHTML 1.0, 1.1, 1.2 and even 2.0 and now we hear about HTML5;
Vertical alignment was much easier with tables, now with css based layout it is much harder to do that due to browsers complatibillty (MSIE).
- ********0
coding = no sense
- version30
like any language spoken or written, without a concise understanding of the syntax and rules of usage, it stands to reason that it would make "no sense"
- raf0
CSS flaws discussions are endless, the dead horse shredded to dust, but this is the best read I came across in long time.
http://www.flownet.com/ron/css-r…
- Point50
I shamelessly don't give a fuck. When I need to get a form set up quickly, I'll throw that shit right into a table, fuck it.
- ********0
I can understand the frustration that a person returning to web design after a 10 year hiatus might have with CSS - but I still think it's worth staying away from tables, sliced graphics and 'spacer.gif's.
There is a learning curve - and it takes a while to figure it all out. The bottom line is CSS is an improvement on tables and sliced graphics on so many levels; I reckon thinking anything else is pretty daft.
- I taught myself HTML and tables in about 2 months part time, but I've been working on learning CSS and floats are crazyAmicus
- CSS floats are crazyAmicus
- if i had to learn again i'd use http://www.opera.com…********
- ukit0
Let's face it, if a group of semi-rational people (who understood the challenges faced in everyday UI design) were tasked with rewriting HTML from the ground up they could come up with a better system in about 10 minutes.
When you look back on the history of HTML and what a clusterfuck it's been, it's not surprising though;)
- raf0
I love what the webkit team does with css though - transitions, slides, rotation(!!!) - all submited to w3c.
Watch in latest Safari, there's no Flash, no JS:
http://webkit.org/blog-files/pul…
http://webkit.org/blog-files/bou…
http://webkit.org/blog-files/lea…- None of these worked for me.NoFavorite
- neat stufflambsy
- Safari and Chrome/Chromium only so farraf
- wow .. so 6 people in the world can see them working then!jamble
- and so, as a result, totally uselesshans_glib
- ********0
I think flownet and most of you need to read up on absolute/relative positioning.
I had to edit a monster CMS last week with table-based layouts and it just made me realise how much easier CSS has made my life. It basically leaves the criticism null and void (for me).
- Nobody advocates using tables, css is an obvious step forward. The question is why it sucks.raf
- flashbender0
^^
"This paragraph should pulse. Pulsing is the new blink. You heard it here first. "Why the fuck would anyone want that in the first place?
- where do you think my nickname comes from? ;)neverblink
- it's a fucking demo! actually it's rotation that's a biggie. other features can be achieved with JS, rotation needed Flashraf
- ********0
webkit is used inside LOTS of mac apps e.g to display messages in IM clients, the animation stuff means you can add more animation inside your apps easily.
Also works in mobile safari