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 - 128 / 2 = 128?
  
User name:
Password:
Reply:
 

UserPost
HyperLamer
Posts: 3378/8210
Ack, bad CSS! *Updates*
Parasyte
Posts: 308/514
I believe you are correct. HyperHacker's CSS has attached itself to my pre like a virus.
*Parasyte updates.
Zem
Posts: 802/1107
Won't that CSS affect all <pre> tags? I think the class specification will only apply to the code selector. If I'm not horribly mistaken, it should be
div.parasyte code, div.parasyte pre

EDIT: Nevertheless, that's a great solution.
HyperLamer
Posts: 3365/8210
*sticks in layout* Cool, thanks.
neotransotaku
Posts: 2326/4016
hmm...that will do it--i was hoping for a more boardwide fix though, but that'll have to do...

thanks for the code
Parasyte
Posts: 306/514
My layout fixes both the line break problem in the pre tag, and the whitespace handling by the code tag. I just use a bit of CSS:

div.parasyte code, div.parasyte pre {
font-family: monospace, "Courier New";
font-size: 11px;
white-space: pre;
margin: 0px;
}
div.parasyte code br, div.parasyte pre br {
display: none;
}
Mind 54
Posts: 8/9
use nbsp; 5 times?
neotransotaku
Posts: 2319/4016
it's probably better to use pre instead of code I think code by it's nature doesn't support whitespace characters ouside of space

unfortunately, pre on this board causes everything to be double spaced unless you put in br tags yourself. I wonder if there is anything that can be done about that?
HyperLamer
Posts: 3361/8210
Note to self: Check syntax BEFORE posting.

...Since this is here, any way to get tabs to show up in code tags?
Acmlm's Board - I2 Archive - Programming - 128 / 2 = 128?


ABII


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



Page rendered in 0.010 seconds.