[Linux-users] HTML wonkiness
Lonni J Friedman
netllama
Tue Aug 7 16:21:24 PDT 2007
On 8/7/07, James McDonald <james at jamesmcdonald.id.au> wrote:
> Lonni J Friedman wrote:
> > I've got some HTML that I'm working on that isn't working the way I'd
> > expect. Basically I have a bunch of nested unordered lists. However,
> > for reasons that I can't figure out, the nested lists aren't getting
> > indented inside the parent list.
> >
> > For an example of the problem see here:
> > http://mail.linux-sxs.org/~netllama/index0.html
> >
> > Anyone have any idea what i'm doing wrong?
> >
> >
> You seem to have some bad css the brackets seem to be nested
> incorrectly... and you could also be inheriting from your other elements
> with margin: 0px etc.
>
> Explicitly define your ul with some css and perhaps you will override
> where it's being inherited from.
>
> body {
> font-family: Arial, Helvetica, sans-serif;
> font-size: 13px;
> a:link {color:"#80c41c";text-decoration: underline; }
> a:visited {color:"#80c41c";text-decoration: underline; }
> a:hover{color:#80c41c;text-decoration: underline; foreground:#80c41c;background:#000000 }
> a:active{color:#d4d4d4;text-decoration: underline; }
> ul.sample {
> list-style-type: inherit;
> list-style-image: none;
> list-style-position: inside; }
> }
>
nevermind, i figured it out. This entry at the top of main.css was
wreaking havoc:
* { padding: 0; margin: 0; }
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama at gmail.com
LlamaLand http://netllama.linux-sxs.org
More information about the Linux-users
mailing list