Jochem Maas wrote:
...
Smarty does force that at all; you have to make the distinction and apply liberal self-restraint.
I meant 'does NOT force' - thinko!
...
PLEASE WORLD: GET BEHIND CSS, AND FREE CONTENT FROM STYLE ON THE CLIENT.
why because it allows the structrully mark-uped to be display more flexibly, for diff. display, aural readers, braille etc. removing the styling definitions it also allows you to specify different markup.
I want to. I so want to, but I can never get it to make the layout as I want it. I want to take a div and make it vertically or horizontally
be practical - if you need to vertical align something and can't get it to work another way use a table.
I CSS site that I found really inspiring is http://www.csszengarden.com/
if you really 'want to' then take the time to read it and view all the styles (well not ness. all 247) - take a look at the HTML (and the CSS file for each style), maybe have a go at it yourself.
centered in another div....if you figure out how to do it with dynamic
try to let go of the assumption that you can control the display of your pages (think of the all the platform/hardware/software/user-settings/etc combinations there are.) - you can only guide it. one of the founding ideas of the 'webpage' if that the manner in which it is displayed is upto the user (braille/speech/mobile/PC/Barney).
also attempt a site contruction by first creating a bare bones text only site with proper markup (P,H tags etc. prefer XHTML over HTML), the see what you can add. (have a look at the effect is of using different DOC-TYPEs)
sizes that is easy and works on all the major browsers, let me know. I've tried for hours, looks on I don't know how many websites, and I still couldn't do it. I went back to tables because it's just so easy. CSS makes my life very hard...it doesn't seem to have the basics needed to create an entire layout.
er but it really does (and the trick is to). not to worry I have been hacking css for about 3 years now, in the beginning it was even worse - support is getting better which means documentation often more closely ressembles truth ;-)
Make Mozilla/Opera part of your testing kit - they support CSS better (they are not 3+ years old like IE6).
instead of approaching it from the view of a print designer - ie fixed, static layout - assume the layout is a liquid (http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=liquid+design)
to be honest - in this game you really have to study something to truely get a grip on it. I mean, how many scripts have you poured over, how many hours with just one of those scripts to get it to play just right? CSS is no different.
That said, I do use lots of CSS for styling (font sizes, colors, images, printable pages, etc.), but fill-page styling via CSS is just beyond my reach.
dumping all those style definitions in a seperate file in a good start.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php