Some CSS "must knows" from me, and please share yours
Collapse
X
-
-
Great thread and great idea!
But, there's a lot I don't understand with CSS, and Stuart's example below shows my ignorance. Take the Acid 2 Test and see if your browser is compliant...
Safari 3 passes the test, Opera 9 neerly passes (nose colour wrong), and besides some very minor other browsers that's it.
The reason I bring this up is that Safari 3, 100% compliant, renders the below wrong. There is no header - the images start and the text wraps around.
CSS is great, and these kinda rules are essential, but it goes much deeper than simple rules - the only rule is to test in as many browsers as possible.
Thank you. I decided to put together a couple of examples just to demonstrate... maybe not the best (they're done fast) but they should give you the right idea.
1. This is the thumbs idea from #5. You can resize the browser as wide or as narrow as you like and see how the thumbs will just fit.
I challenge you to try it with a table layout.
http://www.9xs.net/thumbs.html
2. This one is a basic layout with a header, left and right column and a footer (copyright).
Look at the source code to see the actual html (everything after the <body>).
There's almost nothing to it at all. Take out the CSS at the top of the page and you'll have a very basic page.
http://www.9xs.net/layout.html
Hopefully these help to illustrate some of my points.
For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)
All models are wrong, but some are useful. George E.P. Box. p202Comment
-
Excellent thread! BUMP!
Custom Cartoon Mascots - ICQ: 243355699, Email: [email protected] or Click Sig - 15% referrals. Send me clients, make money!
Comment
-
Nice one.. didn't know about *.. there's some special things like that that I'm not aware of.Here's a quick tip:
Instead of wrangling with every element and having to put margin:0;padding:0; use this at the top of your CSS:
This works by using the wildcard match to make every element on the page have no padding and no margin without having to constantly redefine these.Code:* { margin:0; padding:0; }
Enjoy.
Comment
-
Comment
-
Awesome thread, Stu, bookmarked! You know how much I LOOOOVE Css... grrrComment
-
CSS is the suck and not necessary.

NAKED HOSTING FTW!11 I'm On The INSANE PLAN $9.95/mo!
| The Alien Blog Adult News Worth Reading Updated Daily
| Content For Sale! 641 PICS 216 MINUTES OF VIDEO $350.00 |ICQ: 78943384 |Comment
-
I must say, to me 'pure css' designs, still seem in the realm of 'hacky' at best, but I love making hybrids : let tables make the main structure, throw in divs and css for the rest, match made in heaven.Comment
-
What are you talking about? CSS is useable without being hacky in the slightest.
Custom Cartoon Mascots - ICQ: 243355699, Email: [email protected] or Click Sig - 15% referrals. Send me clients, make money!
Comment
-
Ths is a really great thread. I hate CSS with a passion but as a full time blogger I am always dealing with it in my WP themes. I find that even the simplest adjustment takes forever to figure out in CSS.... but maybe this thread will help me.бабки, шлюхи, силаComment
-
Segpay Suck Ass Worse Billing Company
Allurecash Scammers and don't pay

Comment
-
Just adapt the code from this site: http://www.tanfa.co.uk/css/layouts/c...-layout-v1.asp and remove the footer if you don't want it.Comment





Comment