Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - CSS File Syntax | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 41/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 04-01-04 10:52 AM Link | Quote
For this layout, I use a custom .CSS file, which is loaded with the layout.

I'm trying to make some modifications to it, but they don't seem to be working. I want to make the color of links in my posts cyan.

Here's my current .CSS file:

.eq body { font: Arial 10pt; }
.eq blockquote { border: 3px dotted #6666FF; background: #000055; color: Cyan; padding: 5px; width=95% }
.eq A:link { color: Cyan; }

Obviously, A:link isn't right, since it isn't working. I also tried just link, href, and I tried adding link to the body{} syntax, all to no avail. How should I do it?

Thanks in advance!
Jesper
Busy, busy, busy.
Level: 69

Posts: 205/2390
EXP: 2856000
For next: 13743

Since: 03-15-04
From: Sweden.

Since last post: 176 days
Last activity: 79 days
Posted on 04-01-04 05:05 PM Link | Quote
First of all, holy jesus don't use body.
Second of all, width: 95%.
Third, the A not working may be because of the row before it is broken (see point two)
Fourth, no, not cyan, I'd rather hop on the crazy train.
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 137/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-01-04 05:17 PM Link | Quote
Yeah, messing around with the body is a no-no. Don't forget you're doing this for a post layouts, which is just a TABLE on every page of this board, while that whole page has it's own CSS, including body definitions; your post layouts is NOT the same as a whole webpage.

Correct syntax (without the body):

blockquote.eq{
border-color:#6666ff;
border-width:3px;
border-style:dotted;
background-color: #000055;
color:Cyan;
padding:5px;
width:95%;
}
a.eq{
color:Cyan;
}
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 43/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 04-02-04 12:17 AM Link | Quote
Ah! Thanks!

So, if I don't use body, since it's for a table, what would be the proper way to set the font face and size?
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 426/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-02-04 12:24 AM Link | Quote
.table
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 45/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 04-02-04 12:27 AM Link | Quote
*Elric blinks

Of course. *rolls eyes at self for missing the obvious*

Thanks again.
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 142/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-02-04 12:34 AM Link | Quote
.table for font? Meh. Proper way is simply defining the font tag with CSS, example:

font{font-family:Verdama; font-size:10px; color:#ffffff; line-height:16px;}

(rf font.eq is you want it to be a class like you apperantly were meant to do with your a and blockquote tags)
ErkDog

Fuzz Ball
Level: 47

Posts: 152/982
EXP: 752190
For next: 14013

Since: 03-15-04
From: Richmond, VA

Since last post: 40 days
Last activity: 19 days
Posted on 04-02-04 03:16 AM Link | Quote
yeah .table is pretty much nothing, lol

you just set the font in a class type

then at the beginning of your layout

< table blah blah class=cssclass >
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 144/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 04-02-04 03:28 AM Link | Quote
Originally posted by ErkDog
yeah .table is pretty much nothing, lol
I didn't mean that, I just don't see the point of putting font definitions in a class for a table. If not obvious enough, font{} is for <font>, table{} is for <table>, td{} is for <td>, and so on.
ErkDog

Fuzz Ball
Level: 47

Posts: 154/982
EXP: 752190
For next: 14013

Since: 03-15-04
From: Richmond, VA

Since last post: 40 days
Last activity: 19 days
Posted on 04-02-04 03:34 AM Link | Quote
yeah but either way... don't you have to define a class and reference inside of the < table or < td ??

Jesper
Busy, busy, busy.
Level: 69

Posts: 215/2390
EXP: 2856000
For next: 13743

Since: 03-15-04
From: Sweden.

Since last post: 176 days
Last activity: 79 days
Posted on 04-02-04 08:35 PM Link | Quote
ErkDog's right; it would affect every other post too unless he used [hisownlayoutid] table {}.
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 431/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 04-02-04 08:55 PM Link | Quote
That's what I meant, and he could add font colour: to the Table tag.
Acmlm

Torosu
heh
Level: 51

Posts: 456/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 04-02-04 09:07 PM Link | Quote
<style>
.test table {color:#FFFF66}
.test td {color:#99FF99}
.test font {color:#CCCCFF}
</style>


<table class=test><th>This should be uncolored text<tr><td>This should be green text, <font class=test>this should be blue text</font> <div class=test>and this should be green again</table>

This should be uncolored text
This should be green text, this should be blue text
and this should be green again


The font color attribute in .table does nothing, putting it in .td affects all <td> cells in tables that use it (not <th>), while putting it in .font only affects text between <font> tags ... so if you want to affect a whole table, .td is the one to use


(edited by Acmlm on 04-03-04 11:52 AM)
paradox

Spike
Level: 41

Posts: 293/703
EXP: 455239
For next: 24906

Since: 03-16-04
From: usa

Since last post: 40 days
Last activity: 25 days
Posted on 04-03-04 01:42 AM Link | Quote
kinda off topic...but can someone tell me what CSS stands for? i always wanted to know


(edited by paradox on 04-02-04 03:43 PM)
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 48/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 04-03-04 02:59 AM Link | Quote
Cascading Style Sheet
paradox

Spike
Level: 41

Posts: 315/703
EXP: 455239
For next: 24906

Since: 03-16-04
From: usa

Since last post: 40 days
Last activity: 25 days
Posted on 04-04-04 08:22 PM Link | Quote
Originally posted by Elric
Cascading Style Sheet
thanks, i always wanted to know that...
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - CSS File Syntax | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.014 seconds.