searching for logical error in CSS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Denny Schierz

    searching for logical error in CSS

    hi,

    i have a logical error in my css file, but i don't no where.

    have a look:



    i comment this lines:

    /*
    span.rootline {left: 8pt; font-family: font-family:Arial, Helvetica,
    sans-serif;}
    span.rootline a:link{color:#0 00000;font-size:8pt;
    text-decoration:unde rline;}
    span.rootline a:visited{color :#000000;font-size:8pt;
    text-decoration:unde rline;}
    span.rootline a:hover{;color: #FF0000;font-size:8pt;
    text-decoration:over line underline;}
    span.rootline a:active{color: #000000;font-size:8pt;
    text-decoration:unde rline;}

    */

    because, they don't work. I have a rootline in my <div> "top", and with
    some css commands. The span "rootline" is in the div "top".

    #top {
    padding-left : .5em;
    padding-right : .5em;
    padding-bottom: .5em;
    border-bottom : 1px solid #808080;
    height: 10px;
    background-image:
    url(http://musik4life.de/fileadmin/templ...-lippelt.jpg);
    background-repeat: repeat-y;
    margin-right: 5px;
    font-size: 8pt;
    }

    I want to controll the font and color only in my span "rootline". The
    page is: http://www.lippelt-back.com/Mini_Rustica.53.0.html.

    What i did wrong?

    cu denny
  • Els

    #2
    Re: searching for logical error in CSS

    Denny Schierz wrote:
    [color=blue]
    > have a look:
    >
    > http://lippelt-back.com/fileadmin/te...s/new-body.css
    >
    > span.rootline a:link{color:#0 00000;font-size:8pt;
    > text-decoration:unde rline;}[/color]
    [color=blue]
    > I want to controll the font and color only in my span
    > "rootline". The page is:
    > http://www.lippelt-back.com/Mini_Rustica.53.0.html.
    >
    > What i did wrong?[/color]

    You don't have a span with class rootline in your html.

    You don't have any span in your html to be precise.

    You want a.rootline:link instead of span.rootline a:link
    etc.


    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Now playing: Jackson Brown - Load Out/Stay

    Comment

    • Mark Tranchant

      #3
      Re: searching for logical error in CSS

      Denny Schierz wrote:
      [color=blue]
      > span.rootline {left: 8pt; font-family: font-family:Arial, Helvetica,
      > sans-serif;}[/color]

      In addition to Els' comment, note the double font-family in the line above.

      Also, 8pt fonts? Why are you sizing 1) in pt, which is an absolute
      physical size and makes little sense on screen and 2) so small?

      Mmmm.... bakery products!

      --
      Mark.

      Comment

      • Neal

        #4
        Re: searching for logical error in CSS

        On Fri, 10 Sep 2004 14:56:14 +0100, Mark Tranchant
        <mark@tranchant .plus.com> wrote:
        [color=blue]
        > 8pt fonts? Why are you sizing 1) in pt, which is an absolute physical
        > size and makes little sense on screen and 2) so small?[/color]

        "Gee, it looks fine on my computer"

        "Your website is supposed to look good on other people's computers not
        yours"

        "Won't it look the same>"

        "No"

        "Ok, sorry, I'll change them to points then"

        "thump thump thump"

        Figured I just saved about 7 posts in this thread. Carry on.

        OP - use % and only % as the unit for font-size, with 100% being the
        "normal" text size on the page. You want to know why, read the ng
        archives. It's sound advice, and it'll change how you design for the web
        for the better.

        Comment

        Working...