In article Jan Roland Eriksson wrote:
Long time last seen this. Are you really back?
Quote:
Maintainer: Jan Roland Eriksson <rex (AT) css (DOT) nu |
CC'd to that address.
Quote:
ciwas stylesheet authoring FAQ v1.15
00: ===== T O C ===== |
....
Quote:
13: Where can I find the latest version of this FAQ ?
14: Is this FAQ available in other languages ? |
15: Why there is too much whitespace or a line break? I can't find my
error.
A: Most likely because margin-collapsing. Vertical margins in normal flow
collapse. Including margins of parent and child element, unless there is
some padding or border inbetween.
Either remove all margins in spot, or have some border or padding in
between margins to stop collapsing.
16: How do I center something using CSS?
Horizontally:
- If what you want to center is block element (p div table etc.), set
margin:auto; of course, it needs to have limited width, as you can't
center thing that is as wide as content.
- If you want to center inline content, set text-align:center to *parent
element*.
More, including problems in some browsers at
http://dorward.me.uk/www/centre/
Vertically:
- If your content is inside table-cell, element with display:table-cell
use vertical-align:middle for it.
- If you want to center it compared to line box, use
vertical-align:middle for element you wish to center.
- If you want to center block element in block element, you can set some
fixed height and position:relative for parent, and
position:absolute;margin:auto;top:0;bottom:0 for child. Remember also use
min-height for parent if you use different units when setting height of
parent and child.
Vertical centering is is something that browsers don't get right.
Some more about vertical centering, including 3 more ways to do it, at:
http://www.iki.fi/lr/www/css/middle/ http://www.xs4all.nl/~sbpoley/webmatters/fontsize.html Quote:
04: ===== Q & A =====
Q: Why is my external stylesheet not working ?
A: There may be several different reasons behind that, but one very
Browser support for CSS varies and a good place to find out more
about what is or is not supported is "The Mastergrid"... http://www.webreview.com/style/css1/...stergrid.shtml |
It is not there anymore, I can't remember current place. Anyway, IIRC it
is very outdated
Quote:
06: ===== Q & A =====
Q: Why does Netscape lose my styles ?
A: Netscape 4.x has poor support for CSS. Having said that, the
following points should be noted. |
http://www.xs4all.nl/~sbpoley/webmatters/netscape4.html http://w3development.de/css/hide_css_from_browsers/
This is propably most up to date:
http://css-discuss.incutio.com/?page=CssHack Quote:
09: ===== Q & A =====
Q: Why is it my ':hover' declaration for links does not work ? |
Remember, that a:hover applies to all a elements, including <a
name=""></a>.
- I think it was quite up to date. Still missing: "How do I make 2(3,4,5)
column layout?" and "I made 2(3,4,5) column layout but can't get columns
as high?"
It is surprising how many of these are still frequently asked. And how
well this FAQ still answers them.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.