|
-
Aug 27th, 2007, 05:07 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [CSS] Why Doesnt This Work
css Code:
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.
-
Aug 27th, 2007, 11:09 PM
#2
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;
-
Aug 28th, 2007, 12:59 AM
#3
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.)
-
Aug 28th, 2007, 02:48 PM
#4
Thread Starter
Hyperactive Member
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.
-
Aug 28th, 2007, 10:17 PM
#5
Re: [CSS] Why Doesnt This Work
text-indent probably only works on block elements and not on inline elements. Try margin-left instead.
-
Aug 29th, 2007, 02:37 PM
#6
Thread Starter
Hyperactive Member
Re: [CSS] Why Doesnt This Work
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Sep 28th, 2007, 08:17 PM
#7
Re: [CSS] Why Doesnt This Work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|