Re: CSS & tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/5/09 21:35, PJ wrote:
I anyone knows where there is a real source of information about CSS,
how to use it with logical explanations of what is used how, I sure
would like to hear aboutit.

Did you try the sources I already linked you to?

Surely I must be wrong but there must be a logical explanation why such
simple things as a<div id="some_thing>  will show the first of three
<img>s as being part of the div tag and the rest not - but rather as
part of<body>.

If you put a box around the div tag, it includes the first image but not
the next two.
Putting 5 images of 98px width not only shows four in linewitht the
fifth is off by the margin-top height but also displays the images in a
reverse order. How do you explain that? And how do you get it to do what
you want?

Your description of these problems is far too vague to make any suggestions. Try linking to minimal test cases that _show_ your code and the problems it causes. But best address them to a dedicated CSS discussion list, rather than a list dedicated to PHP.

http://webkit.org/quality/reduction.html might help you produce such test cases.

And what about all the weird CSS configurations that are not documented
anywhere I could find in a reasonable time - where are the definitions
for form positioning and displaying?

Strictly, there are no conformance criteria for how CSS 2.1 properties apply to (X)HTML form widgets, so this is up to user agents. For discussions of the current state of affairs, please see:

   * http://www.w3.org/TR/CSS21/conform.html#conformance
   * http://www.w3.org/TR/css3-ui/
* http://www.456bereastreet.com/archive/200701/styling_form_controls_with_css_revisited/
   * http://meyerweb.com/eric/thoughts/2007/05/15/formal-weirdness/

For practical advice on styling forms with CSS, please see (for example):

http://dev.opera.com/articles/view/34-styling-forms/

What do such definitions signify:
"form div fieldset label.labelCheckbox, form div fieldset
label.labelRadio {..."
and - "form div input.inputText, form div input.inputPassword {..."

This is elementary CSS syntax:

   * http://penguin.theopalgroup.com/cgi-bin/css3explainer/selectoracle.py
   * http://css.maxdesign.com.au/selectutorial/
   * http://www.w3.org/TR/CSS2/selector.html
   * http://www.w3.org/TR/css3-selectors/

I thought that form would be subservient to div or is it the opposite?

This question suggests you'd benefit from reading an introduction to CSS selectors such as the maxdesign link above.

Again, I hope that helps.
--
Benjamin Hawkes-Lewis


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux