Results 1 to 7 of 7

Thread: [RESOLVED] [CSS] Why Doesnt This Work

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Resolved [RESOLVED] [CSS] Why Doesnt This Work

    css Code:
    1. a.linksub {font: bolder; text-decoration: none; color: #9999FF; line-height: 16pt; text-indent: 15px}
    Why doesnt this work? (CSS)
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    PowerPoster JPnyc's Avatar
    Join Date
    Oct 2002
    Location
    Manhattan
    Posts
    3,015

    Re: [CSS] Why Doesnt This Work

    If you use the font shorthand, you have to include all the parameters. For what you have there you need the full attr. font-weight:bolder;

  3. #3
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: [CSS] Why Doesnt This Work

    Actually you don't need to include all the parameters: mostly you have to include font size and font name, other parameters are optional.

    Code:
    font : 8pt "Arial", sans-serif;
    
    font : 100% bolder inherit;
    
    font : 1.2pt/1.5pt bold italic "Verdana", "Arial", sans-serif;
    All these should be valid (although I'm not sure if inherit is a valid value, I remember seeing it sometimes but never used it myself. It should copy the font of the parent element.)

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: [CSS] Why Doesnt This Work

    Sorry, I should Have specified, all of it works, except the text-indent part...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: [CSS] Why Doesnt This Work

    text-indent probably only works on block elements and not on inline elements. Try margin-left instead.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: [CSS] Why Doesnt This Work

    ok, thank you...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width