![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
"Xah Lee" <xah (AT) xahlee (DOT) org> wrote: is there somewhere i can find the default css for browsers? No such thing. They all use different default styles. |
|
That said, w3c published a sample default stylesheet http://www.w3.org/TR/REC-CSS2/sample.html |
#12
| |||
| |||
|
|
On 2 Sep 2005 14:31:10 -0700, "Xah Lee" <xah (AT) xahlee (DOT) org> wrote or quoted : p.l {display:list-item} The catch is p comes with baggage, including a display:block. You have to fiddle to make sure your choice overrides. |
|
A crude starting point would be: p.l {display:list-item !important} |
#13
| |||
| |||
|
|
Hi, have a look at http://www.meyerweb.com/eric/thought...ndoing-htmlcss The gist is, if you're using Firefox, you can find a file on your system called html.css (in C:\Program Files\Mozilla Firefox\res and C:\Program Files\Netscape\Netscape Browser\res for me, but the files are exactly the same.) which contain default .css used by the browser ul> and <li> are basically: ul { display: block; list-style-type: disc; margin: 1em 0; -moz-padding-start: 40px; -moz-counter-reset: -html-counter 0; } li { display: list-item; -moz-float-edge: margin-box; } I've not tried these, and I know nothing about mozilla proprietary properties, but it looks quite plausible. There's also a lot of stuff to do with stuff nested inside of lists, eg ul ul, ul ol, ul dir, ... all very interesting. Go to the article for more info ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |