Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
.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 |
| ||
*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 |
| ||
.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 |
| ||
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 |
| ||
Originally posted by ErkDogI 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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
< .test table {color:#FFFF66} .test td {color:#99FF99} .test font {color:#CCCCFF} < <
The font color attribute in .table does nothing, putting it in .td affects all < (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 |
| ||
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 |
| ||
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 |
| ||
Originally posted by Elricthanks, 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 | | | |